makedf
- ssapy.io.makedf(df)[source][source]
Convert an input into a pandas DataFrame.
This function takes an input which can be a list or a dictionary and converts it into a pandas DataFrame. If the input is already a DataFrame, it returns it unchanged.
Parameters:
- dflist, dict, or pd.DataFrame
The input data to be converted into a DataFrame. This can be a list or dictionary to be transformed into a DataFrame, or an existing DataFrame which will be returned as is.
Returns:
- pd.DataFrame
A DataFrame created from the input data if the input is a list or dictionary. If the input is already a DataFrame, the original DataFrame is returned unchanged.