eq-python-client icon indicating copy to clipboard operation
eq-python-client copied to clipboard

Allow frequency strings for more functions?

Open jonmd opened this issue 4 years ago • 0 comments

Allow users to use strings rather than Frequency references in many cases, such as when converting a period-based series to a DataFrame:

# Earlier:
from energyquantified.time import Frequency
df = periodseries.to_dataframe(frequency=Frequency.PT1H)

# Allow this also:
df = periodseries.to_dataframe(frequency="PT1H")

jonmd avatar Jul 27 '21 12:07 jonmd