Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install numpy and pandas on windows

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()
like image 799
googlekid Avatar asked Dec 17 '13 17:12

googlekid


3 Answers

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.

like image 148
AskMe Avatar answered Sep 25 '22 18:09

AskMe


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.

like image 29
sandeep rathore Avatar answered Sep 24 '22 18:09

sandeep rathore


Best to use a pre-packaged solution, Anaconda or Enthought particularly with windows

like image 40
dartdog Avatar answered Sep 24 '22 18:09

dartdog