import pandas as pd from datetime import datetime sensors_dict = pd.read_pickle("saved_sensors_dict.pkl") sensors_df = pd.DataFrame(sensors_dict) sensors_df.T.to_csv("sensors_df.csv") print(datetime.now().strftime("%s"))