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

AnythingType or SomethingType can't be used on pandas Series #2

Open
wtfzambo opened this issue Jun 19, 2019 · 1 comment
Open

AnythingType or SomethingType can't be used on pandas Series #2

wtfzambo opened this issue Jun 19, 2019 · 1 comment

Comments

@wtfzambo
Copy link

wtfzambo commented Jun 19, 2019

Btw, I wanna start first by saying that this module is genius and I love it.

Anyway, if trying something like df.column == Anything it returns a TypeError:

Could not compare <class 'anything.AnythingType'> type with Series

This is easily circumventable by using df.column.values, but I still wanted to let you know.

Surprisingly, it poses no problems with a dataframe, doing something like df[['column']] == Anything works no problemo.

@vilcans
Copy link
Owner

vilcans commented Jun 20, 2019

Thank you! I don't know Pandas, so I don't know why that would happen, but I suspect the Series type does some magic of its own.

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

2 participants