def _candlestick_ax(df, ax):
quotes = df.reset_index()<EOL>quotes.loc[:, '<STR_LIT>'] = mdates.date2num(quotes.loc[:, '<STR_LIT>'].astype(dt.date))<EOL>fplt.candlestick_ohlc(ax, quotes.values)<EOL>
# Alternatively: (but hard to get dates set up properly)
plt.xticks(range(len(df.index)), df.index, rotation=45)
fplt.candlestick2_ohlc(ax, df.loc[:, 'Open'].values, df.loc[:, 'High'].values, 
        df.loc[:, 'Low'].values, df.loc[:, 'Close'].values, width=0.2)