I am looking at the Init signature of pd.Series
. It is as follows:
pd.Series(
data=None,
index=None,
dtype: 'Dtype | None' = None,
name=None,
copy: 'bool' = False,
fastpath: 'bool' = False,
)
Please could somebody explain why it says dtype: 'Dtype | None' = None
and not simply dtype = None
.