Skip to content

Commit fa13ac3

Browse files
Rename column 'Percent' to 'Proportion' to reflect usage.
1 parent 67ab121 commit fa13ac3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/changesummary.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _get_discovery_differences(self, filename):
173173
parent_added_agg = (
174174
combined_docs.groupby("Parent")
175175
.Added.value_counts(normalize=True)
176-
.reset_index(name="Percent")
176+
.reset_index(name="Proportion")
177177
)
178178

179179
# Add a column NumLevels to inicate the number of levels in the tree
@@ -187,7 +187,7 @@ def _get_discovery_differences(self, filename):
187187
parent_deleted_agg = (
188188
combined_docs.groupby("Parent")
189189
.Deleted.value_counts(normalize=True)
190-
.reset_index(name="Percent")
190+
.reset_index(name="Proportion")
191191
)
192192

193193
# Add a column NumLevels to inicate the number of levels in the tree
@@ -197,22 +197,22 @@ def _get_discovery_differences(self, filename):
197197
)
198198

199199
# Create a list of all parents that have been added in hierarchical
200-
# order. When `Percent` is 1, it means that the parent is new as all
200+
# order. When `Proportion` is 1, it means that the parent is new as all
201201
# children keys have been added.
202202
all_added = (
203203
parent_added_agg[
204-
(parent_added_agg["Percent"] == 1) & (parent_added_agg["Added"] == True)
204+
(parent_added_agg["Proportion"] == 1) & (parent_added_agg["Added"] == True)
205205
][["Parent", "NumLevels"]]
206206
.sort_values("NumLevels", ascending=True)
207207
.Parent.to_list()
208208
)
209209

210210
# Create a list of all parents that have been deleted in hierarchical
211-
# order. When `Percent` is 1, it means that the parent is new as all
211+
# order. When `Proportion` is 1, it means that the parent is new as all
212212
# children keys have been added.
213213
all_deleted = (
214214
parent_deleted_agg[
215-
(parent_deleted_agg["Percent"] == 1)
215+
(parent_deleted_agg["Proportion"] == 1)
216216
& (parent_deleted_agg["Deleted"] == True)
217217
][["Parent", "NumLevels"]]
218218
.sort_values("NumLevels", ascending=True)

0 commit comments

Comments
 (0)