SyntaxFix
Write A Post
Hire A Developer
Questions
This can be done simply by using from_records of pandas DataFrame
import numpy as np import pandas as pd # Creating a numpy array x = np.arange(1,10,1).reshape(-1,1) dataframe = pd.DataFrame.from_records(x)