Skip to content

DataExample.py

FUNCTION DESCRIPTION
load_example_data_Eurac

Load the data example csv file to a DataFrame.

load_example_data_Measure2_Unitn

Load the data example csv file to a DataFrame.

load_example_data_Eurac

load_example_data_Eurac()

Load the data example csv file to a DataFrame.

Source code in src/smellscapy/databases/DataExample.py
10
11
12
13
14
15
16
17
18
19
def load_example_data_Eurac() -> pd.DataFrame: 
    """ 
    Load the data example csv file to a DataFrame.
    """

    data_resource = resources.files("smellscapy.data").joinpath("DataExample_Eurac.csv")
    with resources.as_file(data_resource) as f:
        data = pd.read_csv(f, sep=";")
    logger.info("Loaded data example from Smellscapy's included CSV file.")
    return data

load_example_data_Measure2_Unitn

load_example_data_Measure2_Unitn()

Load the data example csv file to a DataFrame.

Source code in src/smellscapy/databases/DataExample.py
21
22
23
24
25
26
27
28
29
30
def load_example_data_Measure2_Unitn() -> pd.DataFrame: 
    """ 
    Load the data example csv file to a DataFrame.
    """

    data_resource = resources.files("smellscapy.data").joinpath("DataExample_Measure2_Unitn.csv")
    with resources.as_file(data_resource) as f:
        data = pd.read_csv(f, sep=";")
    logger.info("Loaded data example from Smellscapy's included CSV file.")
    return data