forked from SVIG/python-bootcamp
Saved the df to a HDF5 file
This commit is contained in:
@@ -189,6 +189,11 @@ while True:
|
||||
print(f"no messages, trying again at {time.asctime()}")
|
||||
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)
|
||||
#flow_control = pubsub_v1.types.FlowControl(max_messages = 1)
|
||||
#streaming_pull_future = subscriber.subscribe(subscription_path,
|
||||
|
||||
Reference in New Issue
Block a user