px_classification_from_df function

px classification from data frame