text stringlengths 1 93.6k |
|---|
)
|
datasets = get_datasets()
|
"""
|
---
|
## Basic examples
|
"""
|
with st.expander("Expand to see the datasets used in the examples below"):
|
dataset_name = st.selectbox("Datasets", datasets)
|
st.write(datasets[dataset_name])
|
"Where the columns have the following types:"
|
datasets[dataset_name].dtypes.to_dict(),
|
""
|
"### line_chart()"
|
with st.expander('Documentation'):
|
st.write(plost.line_chart)
|
""
|
with st.echo():
|
plost.line_chart(
|
data=datasets['seattle_weather'],
|
x='date',
|
y='temp_max')
|
""
|
with st.echo():
|
plost.line_chart(
|
data=datasets['seattle_weather'],
|
x='date',
|
y=('temp_max', 'temp_min'))
|
"---"
|
"### area_chart()"
|
with st.expander('Documentation'):
|
st.write(plost.area_chart)
|
""
|
with st.echo():
|
plost.area_chart(
|
data=datasets['rand'],
|
x='a',
|
y=('b', 'c'))
|
""
|
with st.echo():
|
plost.area_chart(
|
data=datasets['rand'],
|
x='a',
|
y=('b', 'c'),
|
opacity=0.5,
|
stack=False)
|
""
|
with st.echo():
|
plost.area_chart(
|
data=datasets['rand'],
|
x='a',
|
y=('b', 'c'),
|
stack='normalize')
|
"---"
|
"### bar_chart()"
|
with st.expander('Documentation'):
|
st.write(plost.bar_chart)
|
""
|
with st.echo():
|
plost.bar_chart(
|
data=datasets['stocks'],
|
bar='company',
|
value='q2')
|
""
|
with st.echo():
|
plost.bar_chart(
|
data=datasets['stocks'],
|
bar='company',
|
value='q2',
|
direction='horizontal')
|
""
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.