Jan-22-2017, 08:16 PM
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.
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.