I am trying to create a python function that plots the data from a DataFrame. The parameters should either be just the data. Or the data and the standard deviation.
As a default parameter for the standard deviation, I want to use an empty DataFrame.
def plot_average(avg_df, stdev=pd.DataFrame()):
if not stdev.empty:
...
...
But implementing it like that gives me the following error message:
TypeError: 'module' object is not callable
How can an empty DataFrame be created as a default parameter?