목록bson (2)
without haste but without rest
bson 데이터 json 변환 스크립트
import json def remove_id(bson): result = [] for col in bson: if col == '_id': continue result.append(col) return result def preprocess_bson(bson, column_list): result = {} for column in column_list: result[column] = bson[column] return result def extract_record(bson_dummy) -> list: result = [] for bson in bson_dummy: column_list = remove_id(bson) record = preprocess_bson(bson, column_list) resu..
ProgrammingLanguage/Python
2021. 2. 5. 10:21