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
added a few eda plotting functions #373
Conversation
eda plotting functions
thanks @Ariel77 for this. could you please add an example notebook so that it is easier to review and understand what each plotting utility is doing? in orbit, we have many example data sets. if you want, you could use |
Add weekly_trend_decomposition function to plot weekly trend, seasonality and residual.
''' | ||
df_dt = deepcopy(df) | ||
df_dt.index = pd.to_datetime(df_dt[date_col]) | ||
res_weely = seasonal_decompose(df_dt[[var]], period=7, model='multiplicative') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to generate some EDA plots so looking at this code to borrow some ideas. A quick question, where do we get this seasonal_decompose(). Thanks!
@Ariel77 @xiaoyangzhou thanks for the new commits. still, could we have one notebook to demo these functions? it can help review the code. |
Sure. @Ariel77 I can work on the demo notebook. Let me know if you already create one. |
I already created one, but with internal data.
I can quickly swap to the iclaim data.
Will push end of this week.
On Wed, Mar 10, 2021 at 5:46 PM xiaoyangzhou ***@***.***> wrote:
@Ariel77 <https://github.com/Ariel77> @xiaoyangzhou
<https://github.com/xiaoyangzhou> thanks for the new commits. still,
could we have one notebook to demo these functions? it can help review the
code.
Sure. @Ariel77 <https://github.com/Ariel77> I can work on the demo
notebook. Let me know if you already create one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#373 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACACRTHKMGRYX236UABMM63TDAHHPANCNFSM4YJNOPVA>
.
--
发自移动版 Gmail
|
1. eda_plot.py: using seasonal_decompose function from statsmodels.tsa.seasonal. 2. eda_function_demo.ipynb: used iclaims_example.csv to generate eda plots.
addressed in a separate PR |
eda 5 plotting functions
Description
Please include a summary of the change and which issue is fixed.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests.
manual tests