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

Add error message for tz_localize #32979

Closed
wants to merge 2 commits into from
Closed

Conversation

sumanau7
Copy link
Contributor

@sumanau7 sumanau7 commented Mar 24, 2020

@ShaharNaveh ShaharNaveh added the Error Reporting Incorrect or improved errors from pandas label Mar 24, 2020
@simonjayhawkins
Copy link
Member

Thanks @sumanau7 can you merge master.

@sumanau7
Copy link
Contributor Author

@simonjayhawkins Don't see the option to merge, request you to do the same.

@simonjayhawkins
Copy link
Member

the merge is to get the changes in #32929 shown in the diff for before review. see https://pandas.pydata.org/docs/development/contributing.html#updating-your-pull-request

sorry the request should have been to merge upstream master

@sumanau7 sumanau7 force-pushed the BUG-32967 branch 3 times, most recently from 5030d13 to 58de83c Compare March 27, 2020 04:58
@sumanau7
Copy link
Contributor Author

@simonjayhawkins is the failing test related ?
test_s3_roundtrip

@simonjayhawkins
Copy link
Member

@simonjayhawkins is the failing test related ?
test_s3_roundtrip

known issue, see #33077

@sumanau7
Copy link
Contributor Author

Green

@jreback jreback added this to the 1.1 milestone Mar 29, 2020
@jreback jreback requested a review from mroeschke March 30, 2020 22:40
@jreback
Copy link
Contributor

jreback commented Apr 7, 2020

@sumanau7 can you merge master and update for the comment above

@jreback jreback closed this Apr 7, 2020
@jreback jreback reopened this Apr 7, 2020
@jreback
Copy link
Contributor

jreback commented Apr 7, 2020

sorry accid closed

@@ -71,7 +71,7 @@ Other enhancements
- Positional slicing on a :class:`IntervalIndex` now supports slices with ``step > 1`` (:issue:`31658`)
- :class:`Series.str` now has a `fullmatch` method that matches a regular expression against the entire string in each row of the series, similar to `re.fullmatch` (:issue:`32806`).
- :meth:`DataFrame.sample` will now also allow array-like and BitGenerator objects to be passed to ``random_state`` as seeds (:issue:`32503`)
-
- `OutOfBoundsDatetime` publishes an error message when timestamp is out of implementation bounds. (:issue:`32967`)
Copy link
Member

Choose a reason for hiding this comment

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

double tickmarks for OutOfBoundsDatetime, "publishes" -> "issues"

@@ -71,7 +71,7 @@ Other enhancements
- Positional slicing on a :class:`IntervalIndex` now supports slices with ``step > 1`` (:issue:`31658`)
- :class:`Series.str` now has a `fullmatch` method that matches a regular expression against the entire string in each row of the series, similar to `re.fullmatch` (:issue:`32806`).
- :meth:`DataFrame.sample` will now also allow array-like and BitGenerator objects to be passed to ``random_state`` as seeds (:issue:`32503`)
-
- `OutOfBoundsDatetime` publishes an error message when timestamp is out of implementation bounds. (:issue:`32967`)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you move this to the Datetimelike section in Bug FIxes

@jreback
Copy link
Contributor

jreback commented Apr 16, 2020

also pls merge master (conflict)

@@ -101,7 +101,6 @@ Other enhancements
- :meth:`~pandas.core.groupby.GroupBy.transform` has gained ``engine`` and ``engine_kwargs`` arguments that supports executing functions with ``Numba`` (:issue:`32854`)
- :meth:`~pandas.core.resample.Resampler.interpolate` now supports SciPy interpolation method :class:`scipy.interpolate.CubicSpline` as method ``cubicspline`` (:issue:`33670`)
-

Copy link
Member

Choose a reason for hiding this comment

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

Could you undo this removed line?

elif obj.dts.year == 2262:
if not (obj.value > 0):
raise OutOfBoundsDatetime
raise OutOfBoundsDatetime(
f'Timestamp cannot be converted within implementation bounds'
Copy link
Member

Choose a reason for hiding this comment

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

I think we wanted to give a sense of what the implementation bound was? e.g. f'Timestamp cannot be converted past {Timestamp.max}'

@mroeschke
Copy link
Member

@sumanau7 Could you merge master and address the review comments?

@jreback
Copy link
Contributor

jreback commented Jun 14, 2020

closing as stale, if you'd like to continue pls ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty error message in tz_localize
6 participants