Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Pandas broadcast with numpy scalars #8116
Comments
behzadnouri
referenced
this issue
Aug 27, 2014
Merged
BUG: broadcasting with numpy scalars (GH8116) #8119
jreback
added Dtypes Compat Reshaping
labels
Aug 28, 2014
jreback
added this to the
0.15.0
milestone
Aug 28, 2014
jreback
closed this
in #8119
Aug 29, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tritemio commentedAug 26, 2014
Pandas objects (
Series,DataFrame, etc...) can broadcast operations with python scalars. For example:But when performing the same operation with a numpy scalar array:
pandas returns an error:
I can't find an explicit mention of scalar broadcasting in Pandas docs but this seems a natural case to be supported.
See also the original SO question.