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

Track dataframe manually through python expression #68

Open
willeppy opened this issue Oct 24, 2022 · 1 comment
Open

Track dataframe manually through python expression #68

willeppy opened this issue Oct 24, 2022 · 1 comment
Milestone

Comments

@willeppy
Copy link
Member

Right now, I can only profile dataframes that exist in memory, however I would like to be able to track any expression that returns a dataframe

Example:

list_of_dfs = []
for i in range(4):
    df_part_a = ...
    df_part_b = ...
    df_part_c = ...
    list_of_dfs.append(pd.concat([df_part_a, df_part_b, df_part_c]))

I want to track list_of_dfs[0] but this is impossible for now

@willeppy
Copy link
Member Author

One potential design is to have API in notebook like below

import digautoprofile

digautoprofile.track(list_of_dfs[0])

and then at each timestep it evaluates this expression and shows a profile.

A couple of tricky cases

  1. Is it possible to even get the expression when calling a function in python without having to pass it as a string
  2. If we just pass the object then any updates wont register (because object id will likely change)

@willeppy willeppy added this to the Backlog milestone Oct 24, 2022
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

No branches or pull requests

1 participant