I have a DataFrame with a Date column that has no timestamp:
But once I apply style to another column in the df, e.g. :
df = df.style.applymap(colorFunction, subset=['column3'])
The DataFrame becomes a Style Object, and the "Date" column gets a timestamp that it didn't have before, as the following:
I tried the following to strip the timestamp from the Date column:
df['Date'].style.apply(lambda x: x.strftime('%Y-%m-%d'))
I got the following error:
TypeError: 'Styler' object is not subscriptable
Is there any way to remove the time stamp from the Style object?




