Partitions the DataFrame into a map of DataFrames according to a discriminator function.
a map from keys to partitioned DataFrames.
the discriminator function.