Using data frame in functions instead of file path.
Using data frame in functions instead of file path.