code: def _candlestick_ax(df, ax):
      
      quotes = df.reset_index()
      quotes.loc[:, 'Date'] = mdates.date2num(quotes.loc[:, 'Date'].astype(dt.date))
      fplt.candlestick_ohlc(ax, quotes.values)
docs: # 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)