Examples
By default, the product of an empty or all-NA Series is 1.
import numpy as np
import pandas as pd
pd.Series([]).prod()
This can be controlled with the min_count parameter
pd.Series([]).prod(min_count=1)
Thanks to the skipna parameter, min_count handles all-NA and empty series identically.
pd.Series([np.nan]).prod()
pd.Series([np.nan]).prod(min_count=1)