We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Following discussion in pydata/pandas-datareader#257
DateOffset should have a property for a "normalized" shortcut string
DateOffset
So for example we should have
to_offset("7Min").normalized_string == "7T" to_offset("7MIN").normalized_string == "7T" to_offset("7min").normalized_string == "7T"
Maybe something like
@property def normalized_string(self): if self.n == 1: return self.rule_code else: return str(self.n) + offset.rule_code
The text was updated successfully, but these errors were encountered:
You have the freqstr attribute for this:
freqstr
In [180]: freq = pd.tseries.frequencies.to_offset("7Min") In [181]: freq Out[181]: <7 * Minutes> In [182]: freq.freqstr Out[182]: '7T'
Sorry, something went wrong.
Thanks Sorry So I'm closing
No branches or pull requests
Following discussion in pydata/pandas-datareader#257
DateOffset
should have a property for a "normalized" shortcut stringSo for example we should have
Maybe something like
The text was updated successfully, but these errors were encountered: