Skip to content

Commit

Permalink
Sum memory usage stat for patient_df
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Apr 14, 2022
1 parent 501c2c2 commit e7c8f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohortextractor/cohortextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _generate_measures(
dataframe="patient_df",
measure_id=measure.id,
date=date,
memory=patient_df.memory_usage(),
memory=patient_df.memory_usage(deep=True).sum(),
)
with log_execution_time(
logger,
Expand Down

0 comments on commit e7c8f14

Please sign in to comment.