class_docstr: Base for all plot classes.
class_docstr_tok: ["Base","for","all","plot","classes","."]
code: def _cast_datetime_axis(self, data_frame, column):
      if self._chart._x_axis_type == "datetime":
          if data_frame[column].dtype != "datetime64[ns]":
              return data_frame.astype({column: "datetime64[ns]"})
      return data_frame
  
imports: import bokeh
  import pandas
  import numpy
  from chartify._core.colors import Color, color_palettes
  from chartify._core.axes import NumericalYMixin, NumericalXMixin
  from scipy.stats import gaussian_kde
label_desc: Use image node_id 8 for calling the BasePlot obj's underlying member method code with example usage: obj._cast_datetime_axis(data_frame, column) and returns: data_frame, data_frame