aws / amazon-sagemaker-examples

Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
https://sagemaker-examples.readthedocs.io
Apache License 2.0
9.79k stars 6.67k forks source link

AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' #4600

Open gbharathsri opened 3 months ago

gbharathsri commented 3 months ago

Link to the notebook xgboost-inference-recommender.

Describe the bug Cell #6 import required libraries fail with the following error

File /opt/conda/lib/python3.10/site-packages/dask/dataframe/accessor.py:276, in StringAccessor() 272 meta = (self._series.name, object) 273 return self._function_map(method, pat=pat, n=n, expand=expand, meta=meta) 275 @derived_from( --> 276 pd.core.strings.StringMethods, 277 inconsistencies="expand=True with unknown n will raise a NotImplementedError", 278 ) 279 def split(self, pat=None, n=-1, expand=False): 280 """Known inconsistencies: expand=True with unknown n will raise a NotImplementedError.""" 281 return self._split("split", pat=pat, n=n, expand=expand)

AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'

To reproduce Execute cell by cell until Cell 6

To fix the issue, run: !pip3 install --upgrade pandas "dask[complete]"