Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Add read_parquet #95

Merged
merged 4 commits into from
Jan 11, 2020
Merged

Add read_parquet #95

merged 4 commits into from
Jan 11, 2020

Conversation

xhochy
Copy link
Owner

@xhochy xhochy commented Jan 8, 2020

No description provided.

@xhochy xhochy requested a review from fjetter as a code owner January 8, 2020 16:28
@codecov
Copy link

codecov bot commented Jan 9, 2020

Codecov Report

Merging #95 into master will increase coverage by 0.38%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #95      +/-   ##
==========================================
+ Coverage    87.7%   88.08%   +0.38%     
==========================================
  Files          17       19       +2     
  Lines        1895     1939      +44     
==========================================
+ Hits         1662     1708      +46     
+ Misses        233      231       -2
Impacted Files Coverage Δ
fletcher/base.py 94.86% <100%> (+0.53%) ⬆️
tests/test_base.py 100% <100%> (ø) ⬆️
tests/test_io.py 100% <100%> (ø)
tests/test_pandas_extension.py 98.17% <100%> (+0.01%) ⬆️
fletcher/__init__.py 100% <100%> (ø) ⬆️
fletcher/io.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a13da1...094fa90. Read the comment docs.

@xhochy xhochy changed the title Add some small typing improvements Add read_parquet Jan 9, 2020
@xhochy
Copy link
Owner Author

xhochy commented Jan 9, 2020

Depends on pandas-dev/pandas#30842

fletcher/base.py Outdated
@@ -637,6 +641,9 @@ def __getitem__(self, item):
For a boolean mask, return an instance of ``ExtensionArray``, filtered
to the values where ``item`` is True.
"""
if PANDAS_GE_0_26_0 and is_bool_dtype(item):
check_bool_array_indexer(self, item)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What it this doing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See pandas-dev/pandas#30308. It is checking nullable boolean arrays for NAs (and raise if there are), and return a numpy array.

So, actually, this needs to re-assign to item.

xhochy and others added 2 commits January 9, 2020 10:24
Co-Authored-By: Joris Van den Bossche <[email protected]>
Co-Authored-By: Joris Van den Bossche <[email protected]>
@xhochy xhochy closed this Jan 10, 2020
@xhochy xhochy reopened this Jan 10, 2020
@xhochy xhochy closed this Jan 11, 2020
@xhochy xhochy reopened this Jan 11, 2020
@xhochy xhochy merged commit 274fd32 into master Jan 11, 2020
@xhochy xhochy deleted the small-typings branch January 11, 2020 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants