(df, attr_name, default_val)
return df.__dict__.get(attr_name, default_val)
Get Dataframe attribute if exists otherwise default value

        :return: Dataframe attribute
Get Dataframe attribute if exists otherwise default value
Get Dataframe attribute if exists otherwise default value
def get_df_attr(df, attr_name, default_val):
    """ Get Dataframe attribute if exists otherwise default value

        :return: Dataframe attribute
    """

    return df.__dict__.get(attr_name, default_val)
def get_df_attr ( df , attr_name , default_val ) : return df . __dict__ . get ( attr_name , default_val )