plotting weekday time series without weekend nan data.

i am reading a csv file of stock date with daily data (weekdays) and dates represented as strings. when i convert dates to datetime format, weekends and holidays are introduced as nans leaving holes in the plot. web searches led me to this.

is this still the case? seems like a lot of trouble for such a common inconvenience.

from mpl documentation http://matplotlib.org/examples/pylab_examples/date_index_formatter.html

“”"
When plotting daily data, a frequent request is to plot the data

ignoring skips, eg no extra spaces for weekends. This is particularly

common in financial time series, when you may have data for M-F and

not Sat, Sun and you don’t want gaps in the x axis. The approach is

to simply use the integer index for the xdata and a custom tick

Formatter to get the appropriate date string for a given index.

“”"

this was originally posted to pydata https://groups.google.com/forum/?fromgroups#!topic/pydata/LiHQqurY440

thanks in advance. Bill