Build pd.Series([1, 2, None]) as a nullable integer, then return its dtype

pandas · from dtypes in pandas

df.dtypesstr vs objectInt64categorydatetime64astypepd.NA

Putting the kettle on…

Starting up…

Exercise 2

Build pd.Series([1, 2, None]) as a nullable integer, then return its dtype. It should be Int64, not float64.

your answer
stuck? the lesson behind it
dtypes in pandas
One type per column — plus the nullable and categorical ones pandas had to add.