Data Types
The data type of a pd.Series allows you to dictate what kind of elements may or may not be stored. Data types are important for ensuring data quality, as well as enabling high-performance algorithms in your code. If you have a data background working with databases, you more than likely are already familiar with data types and their benefits; you will find types like TEXT, INTEGER, and DOUBLE PRECISION in pandas just like you do in a database, albeit under different names.
Unlike a database, however, pandas offers multiple implementations of how a TEXT, INTEGER, and DOUBLE PRECISION type can work. Unfortunately, this means, as an end user, that you should at least have some understanding of how the different data types are implemented to make the best choice for your application.
A quick history lesson on types in pandas can help explain this usability quirk. Originally, pandas was built on top of the NumPy type system. This worked for quite a while but had major...