Skip to content
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

Temporal transformation #6

Closed
glennmoy opened this issue Feb 1, 2021 · 0 comments
Closed

Temporal transformation #6

glennmoy opened this issue Feb 1, 2021 · 0 comments
Assignees
Labels
new transform New transform request

Comments

@glennmoy
Copy link
Member

glennmoy commented Feb 1, 2021

Such as

  • hour of day (HoD)
  • hour of week (HoW)
  • etc

MWE

x = DateTime(2020, 1, 1, 9, 0):Hour(1):DateTime(2020, 5, 7, 16, 0)

# few ways we might define this
hod = Temporal(hour_of_day)
hod = HoD()

Transform.apply!(x, hod)

Note: as with #5 , a "custom transform" type may be preferable rather than defining a new transform for each function.

@glennmoy glennmoy added the new transform New transform request label Feb 1, 2021
@nicoleepp nicoleepp self-assigned this Feb 2, 2021
@nicoleepp nicoleepp mentioned this issue Feb 3, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new transform New transform request
Projects
None yet
Development

No branches or pull requests

2 participants