Python Forum
Simple Series Keyword Error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Series Keyword Error
#5
Python allows for star-imports, however in practice they're strongly discouraged. Imagine you star-import from pandas and numpy, it wouldn't be very clear in your code where Series, index, Dataframe, etc. come from. Worse yet, imagine both modules have something with the same name!

When trying to play with your code, it also seemed that index was not a class like Series and Dataframe, but rather was a sub-module. So I couldn't get your code to work, though I didn't try exhaustively. If you're still having trouble, please post the full stacktrace so we can get a good idea of what the current problem is.
Reply


Messages In This Thread
Simple Series Keyword Error - by Kris - Jan-22-2017, 06:46 PM
RE: Simple Series Keyword Error - by micseydel - Jan-22-2017, 07:00 PM
RE: Simple Series Keyword Error - by Kris - Jan-22-2017, 07:19 PM
RE: Simple Series Keyword Error - by ichabod801 - Jan-22-2017, 08:14 PM
RE: Simple Series Keyword Error - by micseydel - Jan-22-2017, 08:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple numpy reshape error wih contour3D AdeIsHere 0 2,206 Sep-17-2019, 12:01 PM
Last Post: AdeIsHere
  Series object error message abhaydd 1 4,899 Aug-11-2019, 01:29 AM
Last Post: boring_accountant
  Newbie at using python and tensorflow getting error when running simple code FeatherineAu 0 4,000 Sep-28-2018, 02:09 PM
Last Post: FeatherineAu

Forum Jump:

User Panel Messages

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