mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 04:10:43 +00:00
fix(ingest): s3 - add check for 0 rows in profiling (#5219)
This commit is contained in:
parent
1086614129
commit
2be1e64cde
@ -273,7 +273,8 @@ class _SingleTableProfiler:
|
||||
)
|
||||
column_null_counts = null_counts.toPandas().T[0].to_dict()
|
||||
column_null_fractions = {
|
||||
c: column_null_counts[c] / self.row_count for c in self.columns_to_profile
|
||||
c: column_null_counts[c] / self.row_count if self.row_count != 0 else 0
|
||||
for c in self.columns_to_profile
|
||||
}
|
||||
column_nonnull_counts = {
|
||||
c: self.row_count - column_null_counts[c] for c in self.columns_to_profile
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user