Skip to content

Commit 8de6bb4

Browse files
committed
Fix: dropna
1 parent d797e35 commit 8de6bb4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

collector/spot-dataset/aws/lambda/post_processing_data/upload_data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
max_pool_connections=5000, retries={'max_attempts': 10}))
1818

1919
# Submit Batch To Timestream
20+
21+
2022
def submit_batch(records, counter, recursive):
2123
if recursive == 10:
2224
return
@@ -38,6 +40,7 @@ def submit_batch(records, counter, recursive):
3840

3941
# Check Database And Table Are Exist and Upload Data to Timestream
4042
def upload_timestream(data, timestamp):
43+
data = data.dropna(axis=0)
4144
time_value = str(int(timestamp.timestamp() * 1000))
4245

4346
records = []

0 commit comments

Comments
 (0)