Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

np array to df

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: #np #array #df
ADD COMMENT
Topic
Name
7+6 =