Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
df.loc question
#2
define "df"?

This statement is incorrect:
Quote:In this case data it is working on is df2.
You are "working on" df and df2 and the error message says there is no variable named "df".

Has your code assigned a value to df? Where did that happen? Did it happen before trying to use df? Was it in the same scope as the code that is trying to use df?

Are you runnning in a notebook?
ndc85430 likes this post
Reply


Messages In This Thread
df.loc question - by Led_Zeppelin - Sep-15-2022, 06:26 PM
RE: df.loc question - by deanhystad - Sep-15-2022, 07:10 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020