read_csv#
- FDApy.misc.read_csv(filepath, **kwargs)[source]#
Load CSV file into functional data object.
Build a DenseFunctionalData or IrregularFunctionalData object upon a CSV file passed as parameter. If the CSV file does not contain any NA values, the data will be loaded as a DenseFunctionalData object. Otherwise, it will be loaded as an IrregularFunctionalData object. See the Canadian Weather example and CD4 example for the formating of the CSV file.
Notes
We assumed that the data are unidimensional without check.
- Parameters:
filepath (str) – Any valid string path is acceptable.
kwargs – Keywords arguments to passed to the pd.read_csv function.
- Returns:
The loaded CSV file.
- Return type: