Integral types
Integral types are the most basic type category. Much like the int type in Python or the INTEGER data type in a database, these can only represent whole numbers. Despite this limitation, integers are useful in a wide variety of applications, including but not limited to arithmetic, indexing, counting, and enumeration.
Integral types are heavily optimized for performance, tracing all the way from pandas down to the hardware on your computer. The integral types offered by pandas are significantly faster than the int type offered by the Python standard library, and proper usage of integral types is often a key enabler to high-performance, scalable reporting.
How to do it
Any valid sequence of integers can be passed as an argument to the pd.Series constructor. Paired with the dtype=pd.Int64Dtype() argument you will end up with a 64-bit integer data type:
pd.Series(range(3), dtype=pd.Int64Dtype())
0 0
1 1
2 2
dtype: Int64
When storage and...