Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pd.to_numeric produces misleading results on DataFrame #11776
Comments
|
best to raise for non 1-d |
jreback
added API Design Error Reporting
labels
Dec 6, 2015
jreback
added this to the
0.18.0
milestone
Dec 6, 2015
jreback
added Difficulty Novice Effort Low
labels
Dec 6, 2015
|
sounds good, I'll send a PR |
mortada
referenced
this issue
Dec 7, 2015
Merged
BUG: to_numeric should raise if input is more than one dimension #11776 #11780
mortada
added a commit
to mortada/pandas
that referenced
this issue
Dec 9, 2015
|
|
mortada |
dc2a5b3
|
jreback
closed this
in #11780
Dec 10, 2015
jreback
added a commit
that referenced
this issue
Dec 10, 2015
|
|
jreback |
fbb09f4
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mortada commentedDec 6, 2015
when
pd.to_numericis called witherrors='coerce'on aDataFrame, it doesn't raise and just returns the originalDataFrame.This may be related to the discussion here pydata#11221 as this function currently doesn't support anything more than 1-d.
Note that the last expression doesn't raise but the previous one does.
Seems like we should either
pd.to_numericwork withDataFrameorNDFramein generalDataFrameor something more than 1-d is passed