Skip to content

Commit c05ce8e

Browse files
authored
Merge pull request #579 from ddps-lab/aws/t3-fix
Fix: dropna 결측치 오류 핸들링 수정
2 parents 804f6db + 8de6bb4 commit c05ce8e

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)