-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
FIX/ENH: attempt soft conversion of object series before raising a TypeError when plotting #3912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
this leads the user to believe that @wesm ? |
oh I see ok maybe do the conversion if needed (and warn if u can do the conversion but let it proceed - PerformanceWarning) |
ok i'll add the perf warning. |
…peError when plotting
@jreback ok 2 merge? |
@@ -198,6 +198,15 @@ def test_all_invalid_plot_data(self): | |||
self.assertRaises(TypeError, s.plot, kind=kind) | |||
|
|||
@slow | |||
def test_valid_object_plot(self): | |||
from pandas.io.pytables import PerformanceWarning | |||
s = Series(range(10), dtype=object) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this import from io.common ?
in fact PerformanceWarning be a more general import location
maybe pandas.utils.misc ?
(as I think using this elsewhere)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yep sorry
@jreback any objections? going 2 merge if not... |
No please do not put in a performance warning! Thank you for fixing this though |
sure thing. hope i didn't ruffle too many feathers. trying to avoid 👎s like the plague! almost finished |
@wesm merge-able? |
@jreback merge? anyone, beuller? trying to assist in as many 0.11.1 issues as i can... |
ok then |
FIX/ENH: attempt soft conversion of object series before raising a TypeError when plotting
No description provided.