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

Docs: fix missing values use-case in tutorial for PandasDataset #2941

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

cneely33
Copy link
Contributor

@cneely33 cneely33 commented Jul 10, 2023

The reindexing of the grouped dataframes is being performed on the original dataframe. It should be preformed on the dataframe where rows were removed, df_missing_val.

The freq of pd.date_range on line 127 is also set to "1D" instead of "1H" as in the original dataframe.

*Description of changes: Update pandasdataframes.md.template

The reindexing of the grouped dataframes is being performed on the original dataframe. It should be preformed on the dataframe where rows were removed, df_missing_val.
@melopeo
Copy link
Contributor

melopeo commented Jul 14, 2023

Hello @cneely33 ,

thanks for this PR. Your observations seem to be correct. To go ahead with your PR, could you please as well update the frequency as you have pointed out, i.e. from "1D" to "1H"?

Thanks!

Copy link
Contributor

@melopeo melopeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you have suggested, can you please updated freq="1D" to freq="1H"?

Correcting error by changing frequency of new dataframe index from Daily to Hourly
Copy link
Contributor

@melopeo melopeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lostella
Copy link
Contributor

Thanks @cneely33! I think we can merge this, and see about style check failures separately

@lostella lostella changed the title "Use case 2 - Loading Data with missing values" section of pandasdataframes.md.template contains an error Fix missing values use-case in PandasDataset docs Jul 14, 2023
@lostella lostella changed the title Fix missing values use-case in PandasDataset docs Docs: fix missing values use-case in PandasDataset docs Jul 14, 2023
@lostella lostella added documentation This item involves documentation issues pending v0.13.x backport This contains a fix to be backported to the v0.13.x branch labels Jul 14, 2023
@lostella lostella changed the title Docs: fix missing values use-case in PandasDataset docs Docs: fix missing values use-case in tutorial for PandasDataset Jul 14, 2023
@lostella lostella merged commit 5839001 into awslabs:dev Jul 14, 2023
19 of 21 checks passed
lostella pushed a commit to lostella/gluonts that referenced this pull request Aug 7, 2023
@lostella lostella mentioned this pull request Aug 7, 2023
lostella added a commit that referenced this pull request Aug 7, 2023
* Fix JsonLinesFile slicing. (#2925)

* Zebras: Fix index handling of SplitFrame.resize. (#2938)

* Docs: fix missing values use-case in `PandasDataset` docs (#2941)

* Ignore F403 errors in preludes. (#2948)

* Fix: prevent accumulation of `SelectFields` in `PyTorchPredictor` (#2951)

* Prevent redundant accumulation of fields

* update fix

---------

Co-authored-by: Cameronwood611 <cwood611@uab.edu>
Co-authored-by: Lorenzo Stella <stellalo@amazon.com>

* [Docs] fix link to NPTS implementation (#2953)

* Revert "Fix JsonLinesFile slicing. (#2925)"

This reverts commit fa7f9a0.

---------

Co-authored-by: Jasper <schjaspe@amazon.de>
Co-authored-by: cneely33 <cneely33@gmail.com>
Co-authored-by: cameronwood611 <cameron.wood611@gmail.com>
Co-authored-by: Cameronwood611 <cwood611@uab.edu>
@lostella lostella removed the pending v0.13.x backport This contains a fix to be backported to the v0.13.x branch label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This item involves documentation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants