Get the frequencies and relative frequencies from a dataset in a Pandas Dataframe. Outputs to a txt file