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

Skip non-numeric columns when aggregating MicroDataFrames #213

Open
MaxGhenis opened this issue Mar 5, 2021 · 1 comment
Open

Skip non-numeric columns when aggregating MicroDataFrames #213

MaxGhenis opened this issue Mar 5, 2021 · 1 comment

Comments

@MaxGhenis
Copy link
Collaborator

We should follow pandas here:

In [1]: import pandas as pd
 
In [2]: import microdf as mdf                   
                                                                                     
In [3]: d = pd.DataFrame({"x": ["a", "b"], "y": [1, 2]})          
                                               
In [4]: d.mean()
Out[4]:           
y     1.5                                        
dtype: object                                           
       
In [5]: mdf.MicroDataFrame(d).mean() 
...
TypeError: No loop matching the specified signature and casting was found for ufunc add
@MaxGhenis
Copy link
Collaborator Author

pandas raises a TypeError when running mean on a string Series.

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