Skip to content

utils module

This is the utils module that contains utility functions for the geopak package

csv_to_df(csv_file)

Converts a CSV file to a pandas Dataframe

Parameters:

Name Type Description Default
csv_file _type_

The path to the csv file.

required

References

pandas.dataFrame: The pandas DataFrame

Source code in geopak/utils.py
def csv_to_df(csv_file):
    """Converts a CSV file  to a pandas Dataframe

    Args:
        csv_file (_type_): The path to the csv file.


    References:
        pandas.dataFrame: The pandas DataFrame
    """

    import pandas as pd

    return pd.read_csv(csv_file)