Skip to content

Preserve interval labels in cluster results - #246

Open
chenyangsu wants to merge 1 commit into
open2c:mainfrom
chenyangsu:fix/cluster-input-index
Open

chenyangsu wants to merge 1 commit into
open2c:mainfrom
chenyangsu:fix/cluster-input-index

Conversation

@chenyangsu

Copy link
Copy Markdown

For two intervals indexed [1, 0], cluster() returns labels [0, 1]. Joining the cluster starts back by label then assigns each interval the other interval’s start. Could we return the result of set_index(df_index)? The regression covers both settings of return_input.

Testing: all 18 interval operation tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant