[Python] how to install numpy and pandas on windows

Discussão em 'Python' iniciado por Stack, Agosto 24, 2025.

  1. Stack

    Stack Membro Participativo

    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()

    Continue reading...

Compartilhe esta Página