Skip to content

Tag: pandas

Pandas: using column of date to calculate number of days

I am using an AirBnb dataset. I have a column, ‘host_since’. The column contains date objects in the format of ‘DD/MM/YYYY’: for example, 24/09/2008. The columns’ data shows the date that an individual became a host. I want to create a new column in my dataframe that contains the…