Skip to content

Conversation

@jbrockmendel
Copy link
Member

No description provided.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Generally looks good, just two small comments


def strftime(self, fmt: str) -> str:
"""
r"""
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason this is needed? (the docs seem to render fine: https://pandas.pydata.org/docs/dev/reference/api/pandas.Period.strftime.html#pandas.Period.strftime)

Copy link
Member Author

Choose a reason for hiding this comment

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

there are \( in there that are invalid escapes

Copy link
Member

@jorisvandenbossche jorisvandenbossche May 15, 2020

Choose a reason for hiding this comment

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

It might be needed for sphinx (no idea), because as shown, it renders good. Did you check that it still renders fine with this change?

Copy link
Member

Choose a reason for hiding this comment

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

I suppose this is copied from the stdlib docs, and there those escape is also used: https://raw.githubusercontent.com/python/cpython/3.8/Doc/library/datetime.rst

Copy link
Member Author

Choose a reason for hiding this comment

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

I mainly notice this because the syntax highlighter (sublime text) marks it

Copy link
Member Author

Choose a reason for hiding this comment

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

@jorisvandenbossche do you feel strongly that this should be reverted? i care about this less than the rest of the PR, so would be OK with that

Copy link
Member

Choose a reason for hiding this comment

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

I don't care about whether this should be reverted or not, but if you change it, you need to build the docs to check that it actually works (because just based on guessing, I wouldn't know whether this change is correct or not)

@jreback jreback added this to the 1.1 milestone May 17, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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


def strftime(self, fmt: str) -> str:
"""
r"""
Copy link
Member

Choose a reason for hiding this comment

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

I don't care about whether this should be reverted or not, but if you change it, you need to build the docs to check that it actually works (because just based on guessing, I wouldn't know whether this change is correct or not)

@jbrockmendel
Copy link
Member Author

Reverted the "r"; test failure is in feather

@jbrockmendel
Copy link
Member Author

updated+green

@jreback jreback merged commit f89ce8c into pandas-dev:master May 20, 2020
@jbrockmendel jbrockmendel deleted the cln-tslibs branch May 20, 2020 15:15
PuneethaPai pushed a commit to PuneethaPai/pandas that referenced this pull request May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants