Hej,
Prośba o pomoc. Mam następujący problem:
mam obiekt df typu DataFrame a w nim kolumnę TIMESTAMP
chcę dodać do df kolumnę TIME z wartościami sformatowanymi z TIMESTAMP
def timestamp2string(ts):
tz = get_localzone()
return datetime.fromtimestamp(ts/1000, tz).strftime('%Y-%m-%d %H:%M:%S')
df['TIME'] = timestamp2string(df['TIMESTAMP'])
Dostaję komunikat: "cannot convert the series to <class 'int'>"