load_data#

pytwin.load_data(inputs)#

Load a CSV input file into a Pandas Dataframe.

Parameters:
inputsstr

Path of the CSV file to be loaded, containing the Time column and all the Twin inputs data.

Returns:
inputs_df: pandas.DataFrame

A pandas.DataFrame storing time values as well as all the corresponding input data.

Examples

>>> from pytwin import load_data, download_file
>>> csv_input = download_file("CoupledClutches_input.csv", "twin_input_files")
>>> twin_model_input_df = load_data(csv_input)