Closed syntaxsdev closed 3 months ago
Feature added in version 1.2.18
DataFrame can be re-used in methods as_plotly_figure
, as_pyplot_figure
passing df
argument.
Usage example:
from twelvedata import TDClient
td = TDClient(apikey="YOUR_API_KEY_HERE")
ts = td.time_series(
symbol="BTC/USD",
interval="1day",
outputsize=100,
)
df = ts.as_pandas()
ts.as_plotly_figure(df=df).show()
Thank you!
Is your feature request related to a problem? Please describe. If you generate a
TimeSeries.as_pandas()
, why not be able to reuse that dataframe to create a plotly? This saves cedits in case you want to use both.Describe the solution you'd like In
TimeSeries
class, an additional function to create plotly from DF or add as a parameter.Describe alternatives you've considered Spending more credits or rebuilding the method outside of the
twelvedata-python
library.Additional context I can probably take a lead on this and create a PR.