Day of #60daysOfMachineLearning
🔷 Pandas - Cleaning Data of Wrong Format 🔷
Cells with data of wrong format can make it difficult, or even impossible, to analyze data. To fix it, you have two options: remove the rows, or convert all cells in the columns into the same format
🔷 Pandas - Cleaning Data of Wrong Format 🔷
Cells with data of wrong format can make it difficult, or even impossible, to analyze data. To fix it, you have two options: remove the rows, or convert all cells in the columns into the same format
As you can see from the result, the date in row 26 was fixed, but the empty date in row 22 got a NaT (Not a Time) value, in other words an empty value. One way to deal with empty values is simply removing the entire row.
If you missed the previous days, don't worry! You can follow along and go back to day 1 by going to this link 👇
Forgot to add, this is day 36 😅
Loading suggestions...