plost
plost copied to clipboard
Why do I need to explictly assign bar/value/x/y args for every plost funcs
I'm trying to plot a chart via plost instead of streamlit, this code is fine:
st.bar_chart(df)
it uses index as bar index, each columns as values, however this code raises an error:
plost.bar_chart(df)
TypeError: bar_chart() missing 2 required positional arguments: 'bar' and 'value'
I need to change the code like this:
plost.bar_chart(df.reset_index(names=['index']),bar='index',value=list(df.columns))
It is weird and no need to copy and change the df object at the first place, why do I need to explictly assign bar/value/x/y args for every plost funcs, why don't you just use the index and whole columns as value content to run the render as default?