what is attribute error in python?

0 votes
can you give me an example to resolve this error?
Mar 27 in Python by Waseem
• 4,470 points
248 views

1 answer to this question.

0 votes
import pandas

df = pd.read_csv('filename')

it will give attribute error.

what you can do is 

import pandas as pd

df = pd.readcsv('filename')

this will resolve the error.
answered Mar 27 by Mohammad
• 3,060 points

Related Questions In Python

0 votes
0 answers

what is a name error in python?

why am i getting a name error ...READ MORE

Mar 7 in Python by anonymous
235 views
0 votes
1 answer

what is a type error in python?

you get a type error when you ...READ MORE

answered Mar 8 in Python by Waseem
• 4,470 points
65 views
0 votes
0 answers

What is the type-error in python?

How to resolve this error, or keep ...READ MORE

Jul 31 in Python by Waseem
• 4,470 points
26 views
+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,420 points
1,586 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 339 views
+4 votes
6 answers
0 votes
2 answers

what is the procedure to the version of python in my computer?

Execute the following command on your terminal: python ...READ MORE

answered Mar 19 in Python by Alia
46 views
0 votes
1 answer