vfilimonov / pydatastream

Python interface to the Refinitiv Datastream (former Thomson Reuters Datastream)
MIT License
71 stars 30 forks source link

Deprecated pandas.np module #25

Closed ewildiers closed 4 years ago

ewildiers commented 4 years ago

Since upgrading to pandas 1.0.3 the following warning appears when calling DS.fetch:

"/site-packages/pydatastream/pydatastream.py:335: FutureWarning: The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead"

Should be an easy case of replacing pd.np.NaN by np.NaN where appropriate

@vfilimonov Happy to do the PR for this if you like?

vfilimonov commented 4 years ago

Hello @ewildiers Thanks for the report and the suggestion! I have already pushed the change to master. Will need to upgrade my pandas and check that nothing else is broken (it should not) and then push it to pypi