class_docstr: Base class for interfacing prophet and neuralprophet.
class_docstr_tok: ["Base","class","for","interfacing","prophet","and","neuralprophet","."]
docstr: Coerce y.index to pd.DatetimeIndex, for use by prophet.
docstr_tok: ["Coerce","y.index","to","pd.DatetimeIndex",",","for","use","by","prophet","."]
code: def _convert_input_to_date(self, y):
      """Coerce y.index to pd.DatetimeIndex, for use by prophet."""
      if y is None:
          return None
      elif type(y.index) is pd.PeriodIndex:
          y = y.copy()
          y.index = y.index.to_timestamp()
      elif pd.api.types.is_integer_dtype(y.index):
          y = self._convert_int_to_date(y)
      # else y is pd.DatetimeIndex as prophet expects, and needs no conversion
      return y
  
imports: import os
  import pandas
  from sktime.forecasting.base import BaseForecaster
label_desc: Use image node_id 2 for calling the _ProphetAdapter obj's underlying member method code with example usage: obj._convert_input_to_date(y) and returns: y, None