-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
TST: add test to read empty array #43459
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
Merged
jreback
merged 16 commits into
pandas-dev:master
from
nakatomotoi:add-read-parquet-test
Sep 29, 2021
Merged
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b9ecdb6
TST: add test to read zero-chunked array
nakatomotoi 427eee1
Modify: change test function
nakatomotoi 6419677
Modify: add several dtypes
nakatomotoi a48a0a5
Modify: set dtypes by @pytest.mark.parametrize
nakatomotoi e72733c
Modify: add Int64 and UInt8
nakatomotoi 38fa455
Modify: add comment of original issue number
nakatomotoi 242c81d
Modify: add use_nullable_dtypes as read_kwargs
nakatomotoi 74154ad
Modify: add boolean
nakatomotoi d1e114f
Modify: remove use_nullable_dtypes
nakatomotoi e71e2a5
Merge branch 'master' into add-read-parquet-test
nakatomotoi 58580ed
Merge branch 'master' of https://github.com/pandas-dev/pandas into ad…
nakatomotoi 90b7942
Modify: add float, int, period[D], Float64 and string
nakatomotoi 9fe7498
Modify: move test near test_use_nullable_dtypes
nakatomotoi d738905
Merge branch 'master' into add-read-parquet-test
nakatomotoi 9f3be07
Merge branch 'master' into add-read-parquet-test
nakatomotoi 4aa7027
Merge branch 'master' into add-read-parquet-test
nakatomotoi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -931,6 +931,16 @@ def test_read_parquet_manager(self, pa, using_array_manager): | |
else: | ||
assert isinstance(result._mgr, pd.core.internals.BlockManager) | ||
|
||
@pytest.mark.parametrize("dtype", ["Int64", "UInt8", "boolean"]) | ||
def test_read_empty_array(self, pa, dtype): | ||
# GH #41241 | ||
df = pd.DataFrame( | ||
jreback marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
"value": pd.array([], dtype=dtype), | ||
} | ||
) | ||
check_round_trip(df, pa, read_kwargs={"use_nullable_dtypes": True}) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move this test near here:
and in fact structure it similarly |
||
|
||
class TestParquetFastParquet(Base): | ||
def test_basic(self, fp, df_full): | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.