Skip to content

Support for temporal methods for Column #15

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

Closed
amrit110 opened this issue Sep 27, 2023 · 4 comments · Fixed by #16
Closed

Support for temporal methods for Column #15

amrit110 opened this issue Sep 27, 2023 · 4 comments · Fixed by #16

Comments

@amrit110
Copy link

Hi! Could there be support to perform temporal computations like (https://pola-rs.github.io/polars/py-polars/html/reference/series/temporal.html) on a column if its a datetime type?

So the use case would be something like this:

def compute_years(df, col_name, new_col_name):
    df_std = df.__dataframe_consortium_standard__()
    dt_col = df_std.get_column_by_name(col_name)
    years_col = dt_col.dt.year() # not sure if this is the API we want, but something like that
    df_std = df_std.insert_column(years_col.rename(new_col_name))

    return df_std.dataframe
@MarcoGorelli
Copy link
Contributor

yeah totally - could you add your request here please data-apis/dataframe-api#260 ?

@MarcoGorelli
Copy link
Contributor

also, we have a bi-weekly call about the design, if you have requests and/or would just like to listen, please do let me know and I can add you

@amrit110
Copy link
Author

yeah totally - could you add your request here please data-apis/dataframe-api#260 ?

Yeah your description there seems to cover it! Yeah please do add me to the call. Would love to listen in, we are adopting the array and dataframe API standards in our project which has some processing functions for clinical ML pipelines as well as evaluation functions (https://github.com/VectorInstitute/cyclops).

@MarcoGorelli
Copy link
Contributor

cool, I'll just need your email address - could you add me on LinkedIn https://www.linkedin.com/in/marcogorelli/ and then DM me it please?

the call will be at 17:00 UTC (28th September)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants