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

Error: module 'pandas.core.strings' has no attribute 'copy' #4

Open
amilcar opened this issue Jan 30, 2021 · 3 comments
Open

Error: module 'pandas.core.strings' has no attribute 'copy' #4

amilcar opened this issue Jan 30, 2021 · 3 comments

Comments

@amilcar
Copy link

amilcar commented Jan 30, 2021

I´m running Python 3.8.5, Pandas 1.2.1, in windows 10.
Installation and importantation of pandas-sets were uneventful.
When trying to execute "df_2018_A['RFV-B'] =df_2018_A['RFV'].set.difference({nan})", I ran into the following error:

AttributeError Traceback (most recent call last)
in
----> 1 import pandas_sets
2 df_2018_A['RFV-B'] =df_2018_A['RFV'].set.difference({nan})

~\Anaconda3\lib\site-packages\pandas_sets_init_.py in
----> 1 from pandas_sets.sets import SetMethods

~\Anaconda3\lib\site-packages\pandas_sets\sets.py in
8 import numpy as np
9
---> 10 copy = strings.copy
11
12

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

@jaksmid
Copy link

jaksmid commented Feb 15, 2021

Encountered the same error. Probably related to new versions of pandas

@racalzadilla
Copy link

I tried a few versions of pandas. From 1.2 on, pandas sets breaks. I'm locally using 1.1.5 which is what's been working for me in Google Colab and it runs.

@shantanuo
Copy link

Encountered the same error. (pandas version 1.2.4)

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

4 participants