Merging PR_218 openai_rev package with new streamlit chat app

This commit is contained in:
noptuno
2023-04-27 20:29:30 -04:00
parent 479b8d6d10
commit 355dee533b
8378 changed files with 2931636 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
"""
Wilkinson Dot Plot
------------------
An example of a `Wilkinson Dot Plot <https://en.wikipedia.org/wiki/Dot_plot_(statistics)>`_
"""
# category: other charts
import altair as alt
import pandas as pd
source = pd.DataFrame(
{"data":[1,1,1,1,1,1,1,1,1,1,
2,2,2,
3,3,
4,4,4,4,4,4]
}
)
alt.Chart(source).mark_circle(opacity=1).transform_window(
id='rank()',
groupby=['data']
).encode(
alt.X('data:O'),
alt.Y('id:O',
axis=None,
sort='descending')
).properties(height=100)