Skip to content

Commit

Permalink
TST
Browse files Browse the repository at this point in the history
Added test for issue pandas-dev#32409, json containing dicts containing the key last_status_change_at
  • Loading branch information
rivera-fernando committed May 14, 2020
1 parent afe7f1d commit 8c4e28f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/tests/io/json/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,15 @@ def test_series_with_dtype(self):
expected = Series([4] * 3)
tm.assert_series_equal(result, expected)

def test_unhashable_dict(self):
df = pd.DataFrame(
[
{"last_status_change_at": {"a": "1"}},
{"last_status_change_at": {"a": "2"}},
]
)
df.describe()

@pytest.mark.parametrize(
"dtype,expected",
[
Expand Down

0 comments on commit 8c4e28f

Please sign in to comment.