-
Notifications
You must be signed in to change notification settings - Fork 18
Test ddf isin with large list #414
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
base: main
Are you sure you want to change the base?
Conversation
tests/benchmarks/test_dataframe.py
Outdated
ddf = timeseries(end="2000-05-01", dtypes={"A": float, "B": int}, seed=42) | ||
ddf.A = ddf.A.mul(1e7) | ||
ddf.A = ddf.A.astype(int).persist() | ||
a_column_unique_values = np.arange(1, n // 10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, it looks like we only use n
once, do we need to create a variable (line 71), is this a number that could potentially change? Or did we choose this number arbitrarily?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleared up by algning 1e7
to N. Yes the value could change.
tests/benchmarks/test_dataframe.py
Outdated
n = 10_000_000 | ||
rs = np.random.RandomState(42) | ||
ddf = timeseries(end="2000-05-01", dtypes={"A": float, "B": int}, seed=42) | ||
ddf.A = ddf.A.mul(1e7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth a comment here on why we need these next two lines. Is it a cardinality issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments.
Thanks, @hayesgb ! |
I'll merge main and uncomment the test.yaml code |
Adds a test for filtering a dataframe by columns on a large list