Skip to content

Conversation

jbrockmendel
Copy link
Member

There are way too many really-similar functions like this. This trims one of them and de-duplicates 4 near-identical usages in the plotting code.

@@ -165,6 +166,16 @@ def _get_ax_freq(ax):
return ax_freq


def get_period_alias(freq) -> Optional[str]:
Copy link
Member Author

Choose a reason for hiding this comment

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

@datapythonista suggestions for a docstring here? i dont know off the top of my head what this alias is used for.

@jreback jreback added the Frequency DateOffsets label May 19, 2020
@jreback jreback added this to the 1.1 milestone May 19, 2020
@jreback jreback merged commit 23c7e85 into pandas-dev:master May 20, 2020
@jbrockmendel jbrockmendel deleted the ref-freqs-aliases branch May 20, 2020 15:12
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
Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants