AttributeError: ‘float’ object has no attribute ’round’
Just change this: a = 3.56803 print(a.round(2)) to this: a = 3.56803 print(round(a, 2))
Just change this: a = 3.56803 print(a.round(2)) to this: a = 3.56803 print(round(a, 2))
Make sure you convert column to Date & Time properly before calling dt.strftime(): df[‘NewDateTime’] = pd.to_datetime(df.DateTime).dt.strftime(“%d/%m/%Y %H:%M”)