tz = pytz.timezone('US/Central')
cst_time = []
for i in (data3['received_time']):
cst_time.append(datetime.fromtimestamp(i,tz))
data3['Date'] = pd.DataFrame(cst_time)
Error:
C:\Users\AppData\Local\Temp\ipykernel_14320\1298578616.py:1: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation.