I get a list of data as follows. and I convert the timestamp to my own clock time as below but it gives an error. How can I do this in a list?
1617009300000
1617009300000
1617009300000
code
candles_df = pd.DataFrame(klines, columns=['T', 'open', 'high', 'low', 'close'])
candles_df['T'] = datetime.fromtimestamp(int(candles_df['T'])/1000)
candles_df['T'] = datetime.fromtimestamp(int(candles_df['T'])/1000)
print(candles_df['T'])
result
raise TypeError(f"cannot convert the series to {converter}")
TypeError: cannot convert the series to <class 'int'>