Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gbharathsri opened this issue Mar 26, 2024 · 0 comments

Comments

@gbharathsri
Copy link

gbharathsri commented Mar 26, 2024

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]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant