wearepal / data-science-types

Mypy stubs, i.e., type information, for numpy, pandas and matplotlib
Apache License 2.0
202 stars 51 forks source link

Add average function of numpy #187

Open courentin opened 3 years ago

courentin commented 3 years ago

This PR add the average function of numpy. I'm not 100% sure the signature is right though.

tmke8 commented 3 years ago

I think you can just copy the signature of np.mean? Returning a Union is not so nice, because then the type checker always has to deal with all the types in the union.