Home > database >  AttributeError: module 'pandas' has no attribute 'dataframe' How can i solve thi
AttributeError: module 'pandas' has no attribute 'dataframe' How can i solve thi

Time:08-31

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)

  • Related