Closes #6852. Dataframe memory usage methods implemented.