Skip to content

BUG: Series construction with EA dtype and index but no data fails #33846

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
merged 29 commits into from
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a06e1a4
BUG: Series construction with EA dtype and index but no data fails
simonjayhawkins Apr 28, 2020
6ae3342
redo tests
simonjayhawkins Apr 29, 2020
72f8ec3
Merge remote-tracking branch 'upstream/master' into broadcast-ea-bug
simonjayhawkins Apr 29, 2020
7a17b33
Merge remote-tracking branch 'upstream/master' into broadcast-ea-bug
simonjayhawkins Apr 30, 2020
1881a03
add test_series_constructor_scalar_with_one_element_index
simonjayhawkins Apr 30, 2020
45ef9a5
move dtype to test function parameters
simonjayhawkins Apr 30, 2020
a339f05
comment - whatsnew
simonjayhawkins Apr 30, 2020
6bfbd1a
comment - merge tests
simonjayhawkins Apr 30, 2020
1c8bd8c
special case to avoid _try_cast call
simonjayhawkins Apr 30, 2020
840df49
troubleshoot
simonjayhawkins Apr 30, 2020
9cf81ee
less failures
simonjayhawkins Apr 30, 2020
d427714
maybe_cast_to_datetime
simonjayhawkins Apr 30, 2020
d47cba4
add failure reason for pyarrow
simonjayhawkins Apr 30, 2020
c5cc30d
update issue ref for ArrowBoolDtype
simonjayhawkins Apr 30, 2020
421aa7c
remove sparse test overrides
simonjayhawkins Apr 30, 2020
4c51356
ref to new issue for JSONDtype RecursionError
simonjayhawkins Apr 30, 2020
ff4ff63
collection as scalar msg and gh ref
simonjayhawkins Apr 30, 2020
aa11bb6
Merge remote-tracking branch 'upstream/master' into broadcast-ea-bug
simonjayhawkins May 1, 2020
268f3a5
fix corner case
simonjayhawkins May 1, 2020
2df2bf1
comment - maybe_cast_to_datetime
simonjayhawkins May 1, 2020
211328c
Merge remote-tracking branch 'upstream/master' into broadcast-ea-bug
simonjayhawkins May 1, 2020
e598f4c
add test for gh-33559
simonjayhawkins May 1, 2020
8c44e23
troubleshoot timeout
simonjayhawkins May 1, 2020
dac66d0
troubleshoot timeout
simonjayhawkins May 1, 2020
b363fb2
Merge remote-tracking branch 'upstream/master' into broadcast-ea-bug
simonjayhawkins May 1, 2020
f2026d3
troubleshoot timeout
simonjayhawkins May 1, 2020
52fcd7f
skip on py3.6
simonjayhawkins May 1, 2020
4907f34
Merge remote-tracking branch 'upstream/master' into broadcast-ea-bug
simonjayhawkins May 1, 2020
663c863
Merge branch 'master' into broadcast-ea-bug
jreback May 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
troubleshoot timeout
  • Loading branch information
simonjayhawkins committed May 1, 2020
commit 8c44e23b444ac544d09190b022864a717c3e4e93
4 changes: 2 additions & 2 deletions pandas/tests/extension/arrow/test_bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ def test_from_dtype(self, data):
def test_from_sequence_from_cls(self, data):
super().test_from_sequence_from_cls(data)

@pytest.mark.xfail(reason="pa.NULL is not recognised as scalar, GH-33899")
@pytest.mark.skip(reason="pa.NULL is not recognised as scalar, GH-33899")
def test_series_constructor_no_data_with_index(self, dtype, na_value):
# pyarrow.lib.ArrowInvalid: only handle 1-dimensional arrays
super().test_series_constructor_no_data_with_index(dtype, na_value)

@pytest.mark.xfail(reason="pa.NULL is not recognised as scalar, GH-33899")
@pytest.mark.skip(reason="pa.NULL is not recognised as scalar, GH-33899")
def test_series_constructor_scalar_na_with_index(self, dtype, na_value):
# pyarrow.lib.ArrowInvalid: only handle 1-dimensional arrays
super().test_series_constructor_scalar_na_with_index(dtype, na_value)
Expand Down
6 changes: 3 additions & 3 deletions pandas/tests/extension/json/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@ def test_from_dtype(self, data):
# construct from our dtype & string dtype
pass

@pytest.mark.xfail(reason="RecursionError, GH-33900")
@pytest.mark.skip(reason="RecursionError, GH-33900")
def test_series_constructor_no_data_with_index(self, dtype, na_value):
# RecursionError: maximum recursion depth exceeded in comparison
super().test_series_constructor_no_data_with_index(dtype, na_value)

@pytest.mark.xfail(reason="RecursionError, GH-33900")
@pytest.mark.skip(reason="RecursionError, GH-33900")
def test_series_constructor_scalar_na_with_index(self, dtype, na_value):
# RecursionError: maximum recursion depth exceeded in comparison
super().test_series_constructor_scalar_na_with_index(dtype, na_value)

@pytest.mark.xfail(reason="collection as scalar, GH-33901")
@pytest.mark.skip(reason="collection as scalar, GH-33901")
def test_series_constructor_scalar_with_index(self, data, dtype):
# TypeError: All values must be of type <class 'collections.abc.Mapping'>
super().test_series_constructor_scalar_with_index(data, dtype)
Expand Down