mirror of
https://gitea.psi.ch/APOG/acsm-fairifier.git
synced 2025-07-12 10:31:48 +02:00
Fix duplicate time stamp problems and added code to check for NaTs before ebas submission files.)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user