I'll preface by saying I'm a programming n00b by stack standards. I have experience with data analysis and scripting -- this is what I do professionally at a financial firm -- but I have no idea what I'm doing on the back end.
I'm trying to start using pandas and python --- moving away from matlab/vba but I can't figure out how to install the pandas library.
When I try to import pandas I get an error that numpy module is not present. I tried to install ezsetup / pip (no idea what this is btw)... and I have no idea where to enter this command$ python get-pip.py
Sometimes when I try to import pandas
I get an error cannot import name table hashable
I have no idea what any of this means and I am not getting anywhere.
Update
Ok I installed anaconda and it seems to be allowing me to import numpy and pandas directly from the console. That being said when I try to write a basic time series and plot it using pandas syntax, i get an error that "series is not defined" as such I'm not sure if it is actually working
In [1]: import matplotlib.pyplot as plt
In [2]: ts = Series(randn(1000), index=date_range('1/1/2000', periods=1000))
In [3]: ts = ts.cumsum()
In [4]: ts.plot()
Try this: It should work.
Go to the location where you have Python (C:\Python34) Run the blow command:
python -m pip install pandas
NUMPY installed automatically after my Pandas installation.
First upgrade pip version using command python -m pip install --upgrade pip after that just do pip install pandas
Note : - For pandas python-dateutil, numpy, setuptools and pytz module required.
Best to use a pre-packaged solution, Anaconda or Enthought particularly with windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With