-
Notifications
You must be signed in to change notification settings - Fork 123
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
Check output consistency of .validate
and similar
#428
Comments
Thanks @byersiiasa for identifying this issue! Let me flip this back to you (also pinging @kvanderwijst @gidden @jkikstra): what would be the "natural" return type of this function? For the aggregation features, we recently switched all returned objects to an |
If the return type is always guaranteed to be 1-dimensional, then I would say
|
If staying in the |
I would probably favour either type DF over Series - Series almost always give me headaches |
I also prefer |
Thanks @jkikstra - good that I implemented it that way yesterday evening... 😜 Added you as a reviewer. Please create a new issue for any other functions or methods where a non-intuitive or impractical type is returned. |
Came across an issue with the newest version where an output of
.validate()
, which I think was previously apd.DataFrame
is now apd.Series
.Not a problem in itself - but scripts that then take this output and perform operations that only work with DataFrame will throw an error. - So backward compatibility is reduced.
In our case it was
.drop(..., axis=1)
(i.e. drop columns), which is not possible onpd.Series
Error given is:
ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'>
The text was updated successfully, but these errors were encountered: