bstraehle commited on
Commit
c30c419
·
verified ·
1 Parent(s): 7d6d331

Update custom_utils.py

Browse files
Files changed (1) hide show
  1. custom_utils.py +2 -2
custom_utils.py CHANGED
@@ -35,7 +35,7 @@ def process_records(data_frame):
35
 
36
  # Handle potential NaT values
37
  for record in records[:3]:
38
- print(records)
39
  for key, value in record.items():
40
  print("###")
41
  print(key)
@@ -46,7 +46,7 @@ def process_records(data_frame):
46
  record[key] = processed_list
47
  # Scalar values
48
  else:
49
- if pd.isnull(value).any():
50
  record[key] = None
51
 
52
  try:
 
35
 
36
  # Handle potential NaT values
37
  for record in records[:3]:
38
+ print(record)
39
  for key, value in record.items():
40
  print("###")
41
  print(key)
 
46
  record[key] = processed_list
47
  # Scalar values
48
  else:
49
+ if pd.isnull(value):
50
  record[key] = None
51
 
52
  try: