Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charts not showing #280

Closed
Ahelsinger opened this issue Dec 16, 2023 · 2 comments
Closed

Charts not showing #280

Ahelsinger opened this issue Dec 16, 2023 · 2 comments

Comments

@Ahelsinger
Copy link

I ran this code copy pasted in Pycharm but no charts were shown

https://business-science.github.io/pytimetk/tutorials/02_finance.html

`import pytimetk as tk
import pandas as pd
import numpy as np

stocks_df = tk.load_dataset("stocks_daily", parse_dates = ['date'])

stocks_df.glimpse()

plotly engine

stocks_df.groupby('symbol').plot_timeseries(
'date', 'adjusted',
facet_ncol=2,
smooth=True,
smooth_frac=0.10,
width=900,
height=700,
engine='plotly',
)`

@girdeux31
Copy link

girdeux31 commented May 31, 2024

Same problem here. It is not obvious how to show plots. From the documentation:

import pytimetk as tk
import pandas as pd

df = tk.load_dataset('bike_sales_sample')
df['order_date'] = pd.to_datetime(df['order_date'])

fig = df.groupby('category_1').plot_timeseries(
    date_column = 'order_date',
    value_column = 'total_price',
    smooth_frac = 0.8
)

But plot is not shown. I also tried different engines, method gives back a Figure object but no image is shown. I also tried with fig.shown() method, with no results.

@mdancho84
Copy link
Contributor

This seems like you just need to run fig. Here's an example:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants