I am trying to print each entry of the dataframe separately. The dataframe is created by the following code

0 votes
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'
Jan 27 in Python by solo
• 120 points
216 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

+1 vote
1 answer
0 votes
0 answers

I am trying to click the button but it is not working and it is drop list ..

<a class="quickreports btn btn3d tbbtn" href="javascript:" style="position:static" ...READ MORE

Dec 1, 2019 in Python by anonymous
• 120 points
127 views
0 votes
0 answers

I am trying to install PyBase64 on my python 3.8. But I end up with the following error:

$ pip install pybase ERROR: Could not find ...READ MORE

Mar 24 in Python by Nishant
• 210 points
186 views
0 votes
0 answers

I am trying to install os-win on my python 3.8. But I end up with the following error:

ERROR: Command errored out with exit status ...READ MORE

Mar 24 in Python by Nishant
• 210 points
272 views
0 votes
1 answer

How to print all the index of Pandas Dataframe?

Try this: print(df.index.values) READ MORE

answered Apr 8, 2019 in Python by Yogi
117 views
0 votes
1 answer

How to print the index of a Pandas Dataframe?

You can do this using the code ...READ MORE

answered May 12, 2019 in Python by Usha
532 views
0 votes
1 answer

Is it possible to find the source code of built-in functions of Python?

Since Python is open source you can ...READ MORE

answered Jul 17, 2019 in Python by Neel
• 3,010 points
396 views
0 votes
2 answers

i am installing wordcloud using pip but i am unable to do that ....i am getting the following error

Hi@Prajwala, First check your pip and python version ...READ MORE

answered Apr 15 in Python by MD
• 21,940 points
704 views
0 votes
1 answer