Inspect Data Types
Understand the various data types that exist within pandas.
Motivation
There are several reasons why it’s important to check and understand the data types in our data:
Certain operations and functions can only be applied to certain data types. For example, mathematical operations can only be performed on numerical data, and alphabetical sorting can only be performed on string (text) data.
Some machine learning models can only receive certain compatible data types as input.
Memory usage (in certain occasions) can potentially be reduced by using data types that require less memory for storage. ...
Get hands-on with 1400+ tech skills courses.