Skip to content

Commit 843bb7f

Browse files
committed
fix: aligment chart - convert df values to float in order to correctly render bar chart
1 parent 953a6ef commit 843bb7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/python/bio-alignment-chart.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ import pandas as pd
4747
df = (pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Genetic/gene_conservation.csv')
4848
.set_index('0')
4949
.loc[['consensus','conservation']]
50-
.T)
50+
.T
51+
.astype({"conservation": float}))
5152

5253
fig = px.bar(df, labels={ 'index': 'base' }, hover_name='consensus', y='conservation')
5354
fig.show()

0 commit comments

Comments
 (0)