catalight.analysis.tools.convert_index

catalight.analysis.tools.convert_index(dataframe)

Take in dataframe, convert index from string to float.

If overrun data exists, drops those rows.

Parameters:

dataframe (pandas.DataFrame) – Pandas dataframe containing index with string labels

Returns:

Same Pandas dataframe, now containing index with float labels

Return type:

pandas.DataFrame