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

made pandas dataframe optional to prevent serialization #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trbKnl
Copy link
Contributor

@trbKnl trbKnl commented Oct 31, 2024

Solves

d3i-infra#23

Solution

Make data frames optional so no serialization has to take place. Current code remains working.

The change is small, but the effects on performance are large in case the dataframes become extremely large.
This sometimes an issue for tiktok, when people have watch history going into the million.

To test

In script.py use for example:

data_frame = { 
    "variable_x": {"0":1, "1":3},
    "variable_y": {"0": "appel", "1": "peer"},
}

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 this pull request may close these issues.

1 participant