I have a table with a timestamp that looks like:2020-03-02T20:33:02
I need to remove everything from T in each row. I tried:
for i in CDCn1["Date"]:
CDCn1['Date'] = i.str.replace(r'i[9:]', '')
print(CDCn1)
and had to do individually:
CDCn2['Date'] = CDCn2['Date'].str.replace(r'T07:13:07', '')
Is there a better way?