Skip to content
Snippets Groups Projects

Adding new methods and the consensual backbone

Merged Ali Yassin requested to merge dev into main
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -46,6 +46,10 @@ def fraction_filter(backbone, value, narrate=True, secondary_property='weight',
value = math.ceil(value * len(data))
if backbone.filter_on == 'Nodes':
secondary_property = None
secondary_property_ascending = None
if fraction_filter in backbone.compatible_filters():
data = data.sort_values(by=[column, secondary_property], ascending=[ascending, secondary_property_ascending])
Loading