Data validation is an important preliminary step in exploratory data analysis. Before continuing the analysis, it is necessary to check that the data types and their value ranges match what is expected. Checking data types We saw earlier that .info() provides a quick overview of the data types present in a dataset, as well as other information, such as the number of non-missing values. When you are only interested in data types, you can also use the .dtypes attribute of the DataFrame. But what should you do when the data types are not suitable? Here, the column « an
The rest of this lesson is reserved for subscribers Create your free account to try the sample exercises, then upgrade to full access whenever you like.