Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy arrauy to df

numpy_data = np.array([[1, 2], [3, 4]])
df = pd.DataFrame(data=numpy_data, index=["row1", "row2"], columns=["column1", "column2"])
print(df)
Source by www.dataindependent.com #
 
PREVIOUS NEXT
Tagged: #numpy #arrauy #df
ADD COMMENT
Topic
Name
6+1 =