You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will produce multiple graphs, sorted by the column "company". "company" would be sorted alphabetically by default, but what if I want a custom sort of how the graph are shown?
For example to have something like this:
The text was updated successfully, but these errors were encountered:
in this case, the order of the original dataframe will be preserved after the grouping. So it's enough to arrange the original dataframe in the order you'd like to obtain after the grouping.
Another way is to avoid using a dataframe and pass a list or a dictionary (see notebook with the examples, "plotting with raw data"). In this case you can collect the values and just pass the structure as it is (the order will be preserved for dicts in python 3.7+, otherwise you can use a list).
As an example:
d= {"C": c, "A": a, "B": b}
fig, ax=joypy.joyplot(d)
Lets say you do something like this:
fig, axes = joypy.joyplot(df, by="company", column="Score")
This will produce multiple graphs, sorted by the column "company". "company" would be sorted alphabetically by default, but what if I want a custom sort of how the graph are shown?
For example to have something like this:
The text was updated successfully, but these errors were encountered: