Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix: pandas series of strings #6158
Conversation
mdboom
added the
needs_review
label
Mar 15, 2016
QuLogic
commented on the diff
Mar 15, 2016
lib/matplotlib/cbook.py
| @@ -715,6 +715,17 @@ def is_sequence_of_strings(obj): | ||
| return True | ||
| +def is_hashable(obj): |
mdboom
Owner
|
tacaswell
added this to the
1.5.2 (Critical bug fix release)
milestone
Mar 15, 2016
tacaswell
added a commit
that referenced
this pull request
Mar 16, 2016
|
|
tacaswell |
2b97396
|
tacaswell
merged commit 2b97396
into matplotlib:master
Mar 16, 2016
tacaswell
removed the
needs_review
label
Mar 16, 2016
|
@has2k1 Thanks! |
tacaswell
added a commit
that referenced
this pull request
Mar 17, 2016
|
|
tacaswell |
c78ca18
|
|
backported to v1.5.x as c78ca18 |
tacaswell
added a commit
to tacaswell/matplotlib
that referenced
this pull request
May 22, 2016
|
|
tacaswell |
a190367
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
has2k1 commentedMar 15, 2016
Problem
Pandas series of strings exhibits string like behaviour
and it was being treated as a single string.
Solution
When requiring and identifying a single string, make sure
that the object can be hashed. This screens out the
series and lets them get rightly handled as sequences.