I have a pandas DataFrame that has 2 columns one of the columns is a list of dates in this format: '4-Dec-14' the other column is a list of numbers. I want to plot a graph with the dates on the x-axis and numbers that correspond with that date on the y-axis. Either a scatter plot or line graph. I was trying to follow the tutorial on Matplotlib http://matplotlib.org/users/recipes.html 'Fixing common date annoyances' but it will not accept my date format. When I try using the plot function it returns an error: ValueError: invalid literal for float(): 4-Dec-14. How would I change my date format so it will work. Or is there some other way I can plot this DataFrame. Thanks
Add a comment
|