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)
pd.Series([np.nan]).prod()
pd.Series([np.nan]).prod(min_count=1)