dask / old-dask-examples

Collection of dask example notebooks
57 stars 22 forks source link

ImportError in Binder timeseries example #17

Open jrmontag opened 7 years ago

jrmontag commented 7 years ago

With the Python 2 interpreter, the Cumulative Sum, datetime resampling, and plotting section of the time-series-binder notebook raises the following ImportError when run in Binder:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-0791d5c4aecd> in <module>()
----> 1 df.A.cumsum().resample('1w', how='mean').compute().plot()

/home/main/anaconda2/lib/python2.7/site-packages/dask/dataframe/core.pyc in resample(self, rule, how, closed, label)
    980     @derived_from(pd.Series)
    981     def resample(self, rule, how=None, closed=None, label=None):
--> 982         from .tseries.resample import _resample
    983         return _resample(self, rule, how=how, closed=closed, label=label)
    984 

ImportError: No module named tseries.resample
jrmontag commented 7 years ago

Ah, I see this is happening in many of the notebooks. Based on the existence of the Series.resample() method in the docs, I wonder if this might have to do with the version of dask available to Binder? Let me know if I can provide any other helpful info.

mrocklin commented 7 years ago

Generally I don't think anyone is maintaining the binder notebooks. We should probably remove links to them in public places.

On Tue, Nov 29, 2016 at 6:12 PM, Josh Montague notifications@github.com wrote:

Ah, I see this is happening in many of the notebooks. Based on the existence of the Series.resample() method in the docs http://dask.pydata.org/en/latest/dataframe-api.html#dask.dataframe.Series.resample, I wonder if this might have to do with the version of dask available to Binder? Let me know if I can provide any other helpful info.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dask/dask-examples/issues/17#issuecomment-263730785, or mute the thread https://github.com/notifications/unsubscribe-auth/AASszF_62CsTw5mcZMUlBy0NNvPaWTFLks5rDLFpgaJpZM4K_lXy .

jrmontag commented 7 years ago

Oh ok. Yeah, if this is really a Binder-related issue, then feel free to close out this Issue. Thanks for the quick response!

mrocklin commented 7 years ago

It's a Dask related issue. I suspect that some version has gone out of sync.

On Tue, Nov 29, 2016 at 6:20 PM, Josh Montague notifications@github.com wrote:

Oh ok. Yeah, if this is really a Binder-related issue, then feel free to close out this Issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dask/dask-examples/issues/17#issuecomment-263732413, or mute the thread https://github.com/notifications/unsubscribe-auth/AASszEqCNIwgOEPnkWZV-dKUflVmAnDYks5rDLNSgaJpZM4K_lXy .