what is attribute error in python

0 votes
can you give me an example to resolve this error?
Mar 27, 2019 in Python by Waseem
• 4,540 points
1,079 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, 2019 by Mohammad
• 3,230 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 8, 2019 in Python by anonymous
901 views
0 votes
1 answer

what is a type error in python?

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

answered Mar 8, 2019 in Python by Waseem
• 4,540 points
1,195 views
0 votes
0 answers

What is the type-error in python?

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

Jul 31, 2019 in Python by Waseem
• 4,540 points
461 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,440 points
4,298 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,067 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,485 views
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 20, 2019 in Python by Alia
626 views
0 votes
1 answer

What is a tuple in python?

A tuple is a collection data type ...READ MORE

answered May 21, 2019 in Python by Mohammad
• 3,230 points
803 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP