load_data#

pytwin.load_data(inputs)#

Load the input data from a CVS file into a Pandas dataframe.

Parameters:
inputsstr

Path of the CSV file. This file must contain the Time column and all input data for the twin model.

Returns:
inputs_df: pandas.DataFrame

A Pandas dataframe storing time values and all 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)