@@ -173,7 +173,7 @@ def _get_discovery_differences(self, filename):
173
173
parent_added_agg = (
174
174
combined_docs .groupby ("Parent" )
175
175
.Added .value_counts (normalize = True )
176
- .reset_index (name = "Percent " )
176
+ .reset_index (name = "Proportion " )
177
177
)
178
178
179
179
# Add a column NumLevels to inicate the number of levels in the tree
@@ -187,7 +187,7 @@ def _get_discovery_differences(self, filename):
187
187
parent_deleted_agg = (
188
188
combined_docs .groupby ("Parent" )
189
189
.Deleted .value_counts (normalize = True )
190
- .reset_index (name = "Percent " )
190
+ .reset_index (name = "Proportion " )
191
191
)
192
192
193
193
# Add a column NumLevels to inicate the number of levels in the tree
@@ -197,22 +197,22 @@ def _get_discovery_differences(self, filename):
197
197
)
198
198
199
199
# 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
201
201
# children keys have been added.
202
202
all_added = (
203
203
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 )
205
205
][["Parent" , "NumLevels" ]]
206
206
.sort_values ("NumLevels" , ascending = True )
207
207
.Parent .to_list ()
208
208
)
209
209
210
210
# 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
212
212
# children keys have been added.
213
213
all_deleted = (
214
214
parent_deleted_agg [
215
- (parent_deleted_agg ["Percent " ] == 1 )
215
+ (parent_deleted_agg ["Proportion " ] == 1 )
216
216
& (parent_deleted_agg ["Deleted" ] == True )
217
217
][["Parent" , "NumLevels" ]]
218
218
.sort_values ("NumLevels" , ascending = True )
0 commit comments