—
Load 2021-2022 test data.#
This example shows how to load the test data for the years 2021 and 2022
using the high-level sda.api.load.load_test() function.
First, we import the required libraries.#
import pandas as pd
from sda.api.load import load_test
Then, we define the test names to be loaded.#
# Test names (the load_test function will automatically find the files)
test_names = [
"21s16", # Sparkv3 - Pyrolyse quanti
"21s17c", # section_reduite
"21s37", # pyrolyse run bas débit - chromato
"21s42", # pyrolyse run bas débit - chromato
"22s01", # pyrolyse exploration pression
"22s03", # temps formation jonction
"22s05a", # pyrolyse reacteur V3C
"22s05b", # pyrolyse reacteur V3D
"22s11", # pyrolyse reacteur V3D
"22s25", # pyrolyse reacteur V4A
]
Now, we can load the data using the high-level load_test() function.#
# Load all tests and combine into a single DataFrame
all_dataframes = []
for test_name in test_names:
df = load_test(test_name)
all_dataframes.append(df)
# Combine all DataFrames
df = pd.concat(all_dataframes, ignore_index=True)
# Output
print(f"{len(df)} experimental points parsed")
print(df)