Skip to content

Commit 92c13a5

Browse files
clearer comment
1 parent 412a7f3 commit 92c13a5

File tree

1 file changed

+8
-1
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+8
-1
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,15 @@ def infer_config(args, constructor, trace_patch):
11361136
def get_orderings(args, grouper, grouped):
11371137
"""
11381138
`orders` is the user-supplied ordering (with the remaining data-frame-supplied
1139-
ordering appended if the column is used for grouping)
1139+
ordering appended if the column is used for grouping). It includes anything the user
1140+
gave, for any variable, including values not present in the dataset. It is used
1141+
downstream to set e.g. `categoryarray` for cartesian axes
1142+
11401143
`group_names` is the set of groups, ordered by the order above
1144+
1145+
`group_values` is a subset of `orders` in both keys and values. It contains a key
1146+
for every grouped mapping and its values are the sorted *data* values for these
1147+
mappings.
11411148
"""
11421149
orders = {} if "category_orders" not in args else args["category_orders"].copy()
11431150
group_names = []

0 commit comments

Comments
 (0)