
info() function to give us a snapshot of the type of data that is in our DataFrame and systematically change data into proper data types.Date column is an object type, whereas the correct type for a date is datetime. We can correct this by inputting the follow code.info() function above, we can see there are null values in our data from looking at the Non-Null Count column. Some columns have a different non-null count, which means that these columns have more null values. To see in greater detail which columns and rows have null values, we can use the isna() function.dropna() function. We can start by dropping the rows where at least one element is null in the row. This reduces our DataFrame from 1887 rows to 1684 rowss as seen below.fillna() function. Two popular uses of the function is:Posted Jun 16, 2025
Data cleaning using Python libraries like Pandas and Numpy.
0
1
Feb 11, 2023 - Feb 20, 2023