def load_file_cat(filename,format,spark_session):
    """Function used to load a dataset using spark"""
    df = spark_session.read.format(format).option("header","true").load(filename)
    df.printSchema()
    return df