Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert numpy array to dataframe

import numpy as np
import pandas as pd

my_array = np.array([[11,22,33],[44,55,66]])

df = pd.DataFrame(my_array, columns = ['Column_A','Column_B','Column_C'])

print(df)
print(type(df))
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #convert #numpy #array #dataframe
ADD COMMENT
Topic
Name
9+4 =