i would like assistance on my code after i input: y = data.temp x = data.drop('temp', axis=1)

0 votes
This error appeared:     

Traceback (most recent call last):
  File "C:/Users/DELL/Desktop/New folder/students.py", line 16, in <module>
    y = data.temp
  File "C:\Users\DELL\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3614, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'temp'
Jul 30, 2019 in Python by mimo
94 views
Hi @mimo. As mentioned in the error, pandas dataframe has no attribute named "temp". Can you share your code and explain what you are trying to achieve with it?

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

0 votes
1 answer

How do I determine if my python shell is executing in 32bit or 64bit mode on OS X?

UPDATED: One way is to look at sys.maxsize as ...READ MORE

answered Dec 11, 2018 in Python by aryya
• 7,370 points
514 views
+2 votes
0 answers
+2 votes
1 answer

How can I record the X,Y limits of a displayed X,Y plot using the matplotlib show() module?

A couple hours after posting this question ...READ MORE

answered Dec 27, 2018 in Python by anonymous
136 views
0 votes
1 answer

How can I import tensorflow libraries in my Python code?

You are doing it wrong as tf is not ...READ MORE

answered Dec 31, 2018 in Python by charlie_brown
• 7,780 points
2,371 views
0 votes
1 answer

I have a code that I want to use alter values between two columns in my dataset

Hi @elvin. I read your script and ...READ MORE

answered Mar 17, 2019 in Python by Omkar
• 69,020 points
76 views
0 votes
1 answer
0 votes
1 answer

Python 3.x on python(x,y)?

You can make Python 2 behave the ...READ MORE

answered May 7, 2019 in Python by SDeb
• 13,250 points
619 views
+1 vote
0 answers

ValueError help with Simple Exponential Smoothing analysis on my data set.

I'm very new, and attempting to teach ...READ MORE

Jul 30, 2019 in Python by Declan

edited Jul 31, 2019 704 views
0 votes
1 answer

How can I run Jupyter code on Pycharm?

You can do this by installing the ...READ MORE

answered Aug 7, 2019 in Python by Zulaikha
• 890 points
237 views
+1 vote
1 answer

How do I use the data of an array after splitting it?

Hey, You can use  np.greater(b, f) np.greater_equal(b, f) np.less(b, f) np.less_equal(b, ...READ MORE

answered Dec 9, 2019 in Python by Payal
194 views