Fix duplicate time stamp problems and added code to check for NaTs before ebas submission files.)

This commit is contained in:
2025-03-04 09:02:37 +01:00
parent 9a23744f63
commit f035afbf3b
3 changed files with 75 additions and 35 deletions

View File

@ -267,7 +267,15 @@ if __name__ == '__main__':
print('Path to output directory :', path_to_output_dir)
# Count the number of NaT (null) values
num_nats = data_table[datetime_var].isna().sum()
# Get the total number of rows
total_rows = len(data_table)
# Calculate the percentage of NaT values
percentage_nats = (num_nats / total_rows) * 100
print(f"Total rows: {total_rows}")
print(f"NaT (missing) values: {num_nats}")
print(f"Percentage of data loss: {percentage_nats:.4f}%")
# Perform calibration