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.DataFrame.replace raises UnboundLocalError on mixed data types #11698
Comments
vladu
commented
Nov 24, 2015
|
Note, used to work as expected in 0.16.2. |
|
hmm, looks like an untested code path. want to do a pull-request? |
jreback
added Bug Indexing Missing-data Difficulty Novice Internals Effort Low
labels
Nov 25, 2015
jreback
added this to the
0.18.0
milestone
Nov 25, 2015
varun-kr
referenced
this issue
Nov 29, 2015
Closed
Fix to BUG GH11698. added default value of mask #11715
jreback
added a commit
that referenced
this issue
Dec 2, 2015
|
|
varun-kr + jreback |
8ec8487
|
|
closed by #11715 |
jreback
closed this
Dec 2, 2015
This was referenced Dec 19, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vladu commentedNov 24, 2015
This is in 0.17.1. Suppose we have a frame with mixed data types. Suppose also we want to replace a string value with something else. If the frame has only string columns, or maybe string and int columns, this works fine. However, if the frame has string and datetime columns, this raises an exception. Example:
And the requisite show_versions: