Saved the df to a HDF5 file

This commit is contained in:
2023-05-15 14:56:53 -04:00
parent 2ead943e3a
commit a925035acd
+5
View File
@@ -189,6 +189,11 @@ while True:
print(f"no messages, trying again at {time.asctime()}") print(f"no messages, trying again at {time.asctime()}")
break break
df.to_hdf('product1.h5', key='df',mode='w')
# Open the HDF5 file in a separate window
os.startfile('product1.h5')
# Start receiving messages (async version) # Start receiving messages (async version)
#flow_control = pubsub_v1.types.FlowControl(max_messages = 1) #flow_control = pubsub_v1.types.FlowControl(max_messages = 1)
#streaming_pull_future = subscriber.subscribe(subscription_path, #streaming_pull_future = subscriber.subscribe(subscription_path,