def _apply_backwards_compatibility(df):
    """
    Attach properties to the Dataframe to make it backwards compatible with older versions of this library

    :param df: The dataframe to be modified
    """
    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
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
Attach properties to the Dataframe to make it backwards compatible with older versions of this library

    :param df: The dataframe to be modified