Skip to content

Instantly share code, notes, and snippets.

@chrisroat
Created January 7, 2023 21:46
Show Gist options
  • Save chrisroat/f6dc7bb3baf3cd6ccb4423bdef81a9d9 to your computer and use it in GitHub Desktop.
Save chrisroat/f6dc7bb3baf3cd6ccb4423bdef81a9d9 to your computer and use it in GitHub Desktop.
test46
yticks = []
ytick_labels = []
borders = [0]
data = []
prev = 0
for i in range(df_comb.shape[0]):
values = df_comb.iloc[i].tolist()
*values, count = values
yticks.append(prev + count//2)
ytick_labels.append(count)
borders.append(borders[-1] + count)
prev += count
data.extend([values] * count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment