Skip to content

utils module

This is utils module that contains utility functions for leafagro

csv_df(csv_file)

Convert the csv file to dataframe

Parameters:

Name Type Description Default
csv_file

The CSV file

required
Source code in leafagro/utils.py
def csv_df(csv_file):
    """Convert the csv file to dataframe

    Args:
        csv_file: The CSV file

    """
    import pandas as pd

    return pd.read_csv(csv_file)