import pandas as pd
XYZ_web = {'Day':[1,2,3,4,5,6], 'Visitors':[1000,700,6000,1000,400,350], 'Bounce_Rate':[20,20,23,15,10,34]}
df = pd.DataFrame(XYZ_web)
print(df)
but i am getting this error:
Traceback (most recent call last):
File "C:/Users/HP/AppData/Local/Programs/Python/Python37/testpandas.py", line 1, in <module>
import pandas as pd
File "C:/Users/HP/AppData/Local/Programs/Python/Python37\pandas.py", line 5, in <module>
df = pd.DataFrame(XYZ_web)
AttributeError: module 'pandas' has no attribute 'DataFrame'