import pandas as pd
data={'Name':['Karan','Rohit','Sahil','Aryan'],'Age':[23,22,21,24]}
df=pd.dataframe(data)
df
CodePudding user response:
the dataframe should be in pascal case format not in small letters. See the documentation of pandas. Eg. pd.DataFrame(data)