Using dataframe in statistical secret algorithms