-
Notifications
You must be signed in to change notification settings - Fork 653
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
TEST-#7049: Add some sanity tests with pyarrow-backed pandas dataframes #7199
Conversation
…ndas dataframes Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
pa = pytest.importorskip("pyarrow") | ||
|
||
data = [[Decimal("3.19"), None], [None, Decimal("-1.23")]] | ||
df_equals(*create_test_dfs(data, dtype=pd.ArrowDtype(pa.decimal128(3, scale=2)))) |
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.
df_equals
function is used specifically since there is no benefit to using eval_general
function (because the results of the constructors are tested).
modin_series, pandas_series = create_test_series( | ||
[-1.545, 0.211, None], dtype="float32[pyarrow]" | ||
) | ||
df_equals(modin_series.mean(), pandas_series.mean()) |
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.
eval_general?
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.
mean()
returns a floating point number, so I don't see the need for it
Co-authored-by: Iaroslav Igoshev <Poolliver868@mail.ru>
What do these changes do?
Fixing problematic test cases will be part of the work on #7203.
flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
docs/development/architecture.rst
is up-to-date