8000 KeyError when running the create_dendrogram example by nicholas-esterer · Pull Request #2627 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

KeyError when running the create_dendrogram example #2627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improved doc string for dendrogram
  • Loading branch information
nicholas-esterer committed Jul 13, 2020
commit 969aba480e98694fbbf01f176df79407e7b8b3ee
15 changes: 7 additions & 8 deletions packages/python/plotly/plotly/figure_factory/_dendrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ def create_dendrogram(
:param (ndarray) X: Matrix of observations as array of arrays
:param (str) orientation: 'top', 'right', 'bottom', or 'left'
:param (list) labels: List of axis category labels(observation labels)
:param (list) colorscale: Optional colorscale for the dendrogram tree. With
scipy<=1.4.1 requires 8 colors to be specified,
the 7th of which is ignored. With scipy>=1.5.0,
requires 10 colors. In this case the 8th color is
ignored and the 2nd, 3rd and 6th are used twice as
often as the others. Given a shorter list, the
missing values are replaced with defaults and with
a longer list the extra values are ignored.
:param (list) colorscale: Optional colorscale for the dendrogram tree.
Requires 8 colors to be specified, the 7th of
which is ignored. With scipy>=1.5.0, the 2nd, 3rd
and 6th are used twice as often as the others.
Given a shorter list, the missing values are
replaced with defaults and with a longer list the
extra values are ignored.
:param (function) distfun: Function to compute the pairwise distance from
the observations
:param (function) linkagefun: Function to compute the linkage matrix from
Expand Down
0