code: def _apply_backwards_compatibility(df):
      
      df.row_count = types.MethodType(lambda self: len(self.index), df)
      df.col_count = types.MethodType(lambda self: len(self.columns), df)
      df.dataframe = df
docs: Attach properties to the Dataframe to make it backwards compatible with older versions of this library
  
      :param df: The dataframe to be modified