Closed WeipengMO closed 1 month ago
I've found the solution to this issue. The top_n
parameter requires additional arguments orderby
, orderby_ascending
, and orderby_absolute
to function correctly.
Hi @WeipengMO I'll add a custom exception to make this more informative
Describe the bug
When I use the
top_n
parameter inli.pl.dotplot
, I encounter aKeyError: None
error. Specifically, I'm using the following code:And it raised such error info:
The error occurs when I set top_n=10. If I remove this parameter, the plot is generated without errors.
Screenshots
session_info