analysis from a dataframe