I am trying to plot blood pressure readings, each of which has a datetime timestamp with the day and hour:minute:second of the reading.
As many Seaborn regression plots (lmplot, regplot etc) do not support datetime timestamps I resorted to creating a new data frame column with a numeric ordinal like below:
from datetime import date
df['date_ordinal'] = pd.to_datetime(df['date']).apply(lambda date: date.toordinal())
this works, but the problem is that multiple readings taken in the same day are all stacked on the same x-axis point.
Are there better functions than to ordinal to achieve separating readings taken on a same day with decimal values after the day ordinal?