Data visualization


what is the purpose of these 2 codes? i didn’t get it…
week-11 video:2

Hi @Aditya_Alok,
The first line is used to convert the dataframe into timestamp format. Ex : ‘1998-07-16 12:00:00’ which is a standard format to store and further process date and time in pandas.
Second line on the other hand is nothing but filtering the values. It means that df will only be having rows where the value in status column is “Confirmed”.

1 Like