You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to plot a DataFrame and it wasn't working, so I tried loading the data set from the read_csv docs. It also failed. I think I'm missing something, but I've been successful with matplotlib before. :)
from pandas import read_csv
import matplotlib.pyplot as plt
junk = read_csv('bar.csv')
fig = plt.figure()
junk.plot()
fig.savefig('/tmp/foo3.png')
python /tmp/plot.py
Traceback (most recent call last):
File "/tmp/plot.py", line 6, in <module>
junk.plot()
File "/home/mharrison/work/pandas/env/lib/python2.6/site-packages/pandas/core/frame.py", line 3225, in plot
ax.plot(x, y, label=str(col), **kwds)
File "/home/mharrison/work/pandas/env/lib/python2.6/site-packages/matplotlib/axes.py", line 3783, in plot
for line in self._get_lines(*args, **kwargs):
File "/home/mharrison/work/pandas/env/lib/python2.6/site-packages/matplotlib/axes.py", line 317, in _grab_next_args
for seg in self._plot_args(remaining, kwargs):
File "/home/mharrison/work/pandas/env/lib/python2.6/site-packages/matplotlib/axes.py", line 275, in _plot_args
linestyle, marker, color = _process_plot_format(tup[-1])
File "/home/mharrison/work/pandas/env/lib/python2.6/site-packages/matplotlib/axes.py", line 93, in _process_plot_format
if fmt.find('--')>=0:
AttributeError: 'numpy.ndarray' object has no attribute 'find'
The text was updated successfully, but these errors were encountered:
* ENH: Add min date function
Add min date function to match max date function
* TST: Add test for min and max dates
Add test for min and max dates
* ENH: Improve error for min/max date
Raise NoDataFoundException rather than TypeError when no result
is returned.
I'm trying to plot a DataFrame and it wasn't working, so I tried loading the data set from the read_csv docs. It also failed. I think I'm missing something, but I've been successful with matplotlib before. :)
bar.csv
I get the folowing error:
The text was updated successfully, but these errors were encountered: