Skip to content

CLN: remove get_base_alias #34243

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

Merged
merged 4 commits into from
May 20, 2020
Merged

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