forked from skrub-data/skrub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test polars support (skrub-data#826)
* Rename polars_missing_msg in maj * Test polars inputs in test_joiner * Test polars inputs in test_deduplicate * Test polars inputs in test_fuzzy_join * Test polars inputs in test_minhash_encoder * Rename list of tested modules to MODULES * Test polars inputs in test_gap_encoder. Add dict of possible NULL options for pd or pl * Test polars inputs in test_datetime_encore. Lots of tests don't pass * Store comparison utils in list of tuples instead of dictionaries * Adapt test_interpolation_join for polars. All tests xfail because df.drop() got an unexpected argument 'axis' * Remove NULL dict in test_gap_encoder * Xfail set_output to polars in test_similarity_encoder * Create dfs with pandas, then convert them in px.df in test_interpolation_join * Format * Remove pl testing in test_deduplicate as it isn't dependent on it * Format * Create pd.DataFrames first in test_datetime_encoder * Fix error when polars isn't available * Create function to test if the polars module is available. Use it to xfail specific tests * Move functions to test modules to _utils.py * Move functions to test modules into a new _test_utils.py in _dataframe * Rename is_namespace into is_module
- Loading branch information
Showing
11 changed files
with
477 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def is_module_pandas(px): | ||
return px.__name__ == "pandas" | ||
|
||
|
||
def is_module_polars(px): | ||
return px.__name__ == "polars" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.