Every line of 'pandas divide two columns' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
253 def _split_dataframe(df, dense_columns): 254 """Split a DataFrame by creating groups of the same values for the dense dims.""" 255 groups = {name: group for name, group in df.groupby(dense_columns)} 256 groups = convert_dictionary_keys_to_dense_indices(groups) 257 258 return groups