I am trying to run this code.
raw_data['Date'] = pd.to_datetime(raw_data['UNIX Timestamp'],origin='1970-01-01', format='%Y-%m-%d %H:%M:%S')
The conversion of the date is incorrect.
Unix Timestamp Date
1546369086 1/1/1970
1546369125 1/1/1970
1546375732 1/1/1970
1546334013 1/1/1970
1546340971 1/1/1970
1546367135 1/1/1970
1546367286 1/1/1970
1546367295 1/1/1970
However, when i use the below code, it is giving me correct result.
import datetime
timestamp = datetime.datetime.fromtimestamp(1546369086)
print(timestamp.strftime('%Y-%m-%d %H:%M:%S'))
print(timestamp.strftime('%Y-%m-%d %H:%M:%S'))
2019-01-02 00:28:06