I get a ValueError: min() arg is an empty sequence when I try to convert a pandas data plot into a plot.
Here is an example data frame (with NaN):
ttab.loc[:,:"Irish"]
Group English (British) Americans (White) Canadians Scots Irish Year 1926 1 2 3 4 5 1946 3 1 2 5 4 1956 3 1 2 7 5 1966 2 1 3 9 5 1977 2 1 3 9 7 1993 2 NaN NaN 6 1 2001 4 1 3 NaN 5 2001* 4 1 3 NaN 5 2012 4 1 3 NaN 6
I am doing a beautiful plot:
# Time It import time begin = time.clock()
And then I try to convert, following an example: https://plot.ly/python/matplotlib-to-plotly-tutorial/
Quickstart:
>>> import plotly.plotly as py >>> import matplotlib.pyplot as plt >>>
Or the tutorial in section 6.1:
Anytime I call plot_mpl , mpl_to_plotly or iplot_mpl I get ValueError: min() arg is an empty sequence . I think this may be related to NaNs, but I don't know how to get around this. Any suggestions?
source share