DiFfRG.file_io.csv#
Functions#
|
Reads a csv file and returns a pandas dataframe. |
|
Reads a csv file which contains data for different values of k and returns the data split into separate csvs for each value of k. |
|
Reads a csv file which contains data for different values of k and returns the data split into separate csvs for each value of k. |
Module Contents#
- DiFfRG.file_io.csv.read_csv(csv, delim=',', header='infer')#
Reads a csv file and returns a pandas dataframe.
Follows the same dialect as the C++ reader in DiFfRG/common/csv.hh and the Julia reader in julia/src/io/csv.jl: “#” comment lines and blank lines are skipped, cells that are not finite numbers read back as NaN, and rows whose field count does not match the header are skipped.
- DiFfRG.file_io.csv.read_k_csv(filename, delim=',', kName='kGeV')#
Reads a csv file which contains data for different values of k and returns the data split into separate csvs for each value of k.
- Parameters:
- Returns:
A tuple containing a list with the unique values of k and a list of pandas dataframes for each value of k.
- Return type:
- DiFfRG.file_io.csv.split_csv(csv, name='kGeV')#
Reads a csv file which contains data for different values of k and returns the data split into separate csvs for each value of k.
- Parameters:
- Returns:
A tuple containing a list with the unique values of k and a list of pandas dataframes for each value of k.
- Return type: