tabensemb.utils.utils.str_to_dataframe#
- tabensemb.utils.utils.str_to_dataframe(s, sep=',', names=None, check_nan_on=None) DataFrame[source]#
Convert a .csv type of string to a dataframe.
- Parameters:
- s
A .csv type of string.
- sep
The delimiter.
- names
Column labels.
- check_nan_on
Numerical column labels to detect invalid values and replace them with
np.nan.
- Returns:
- pd.DataFrame
The converted dataframe.