added some extension to apply_as_df