Closed egorananyev closed 2 years ago
Thanks for reporting, but I don't think this is a bug; you have to do import cesium.featurize
or from cesium import featurize
to bring in the submodule.
Thanks, this worked! I copied the import
code straight from a book called "Practical Time Series Analysis," but it didn't work in my case.
Oh dear, that's not right! Please let the author know.
We can also add lazy loading of submodules, which will allow access to submodules. I'll file an issue.
I just realized I never posted the import
code that's used in the book. Just including it in case anyone encountered the same issue (maybe it's a version thing):
from cesium import featurize.featurize_time_series as ft
This yields the following error:
from cesium import featurize.featurize_time_series as ft ^
SyntaxError: invalid syntax
(the ^ points to the period after "featurize")
Nielsen, Aileen. Practical Time Series Analysis
Installing through conda forge on python 3.10
conda install -c conda-forge cesium
I get the following:Installing through pip seems to work, and I can
import cesium
, but none of the modules are recognized. E.g., runningcesium.featurize.featurize_time_series()
yields:ls /Users/username/Library/miniconda3/envs/sklearn/lib/python3.10/site-packages/cesium/