When using pd.Series.value_counts I almost always add the parameter dropna=False. Is there a simple way to set this as the default value without creating a separate function?
I (among others) am also curious about an explanation for why the default value is set to True in the first place.
import pandas as pd; import numpy as np
# initialize series
s = pd.Series([1,1,2,3,np.nan])
# would like s.value_counts() to have the same output as s.value_counts(dropna=False)
s.value_counts(dropna=False)