5011a371a54f1dcf5a01d6e23b2331aab405667e,pandas/tests/io/parser/test_dtypes.py,,test_categorical_dtype_chunksize_explicit_categories,#Any#,222
Before Change
),
]
dtype = CategoricalDtype(cats)
actuals = parser.read_csv(StringIO(data), dtype={"b": dtype}, chunksize=2)
for actual, expected in zip(actuals, expecteds):
tm.assert_frame_equal(actual, expected)
After Change
),
]
dtype = CategoricalDtype(cats)
with parser.read_csv(StringIO(data), dtype={"b": dtype}, chunksize=2) as actuals:
for actual, expected in zip(actuals, expecteds):
tm.assert_frame_equal(actual, expected)
@pytest.mark.parametrize("ordered", [False, True])
@pytest.mark.parametrize(
"categories",
[["a", "b", "c"], ["a", "c", "b"], ["a", "b", "c", "d"], ["c", "b", "a"]],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pandas-dev/pandas
Commit Name: 5011a371a54f1dcf5a01d6e23b2331aab405667e
Time: 2020-12-04
Author: twoertwein@users.noreply.github.com
File Name: pandas/tests/io/parser/test_dtypes.py
Class Name:
Method Name: test_categorical_dtype_chunksize_explicit_categories
Project Name: pandas-dev/pandas
Commit Name: 5011a371a54f1dcf5a01d6e23b2331aab405667e
Time: 2020-12-04
Author: twoertwein@users.noreply.github.com
File Name: pandas/tests/io/parser/test_network.py
Class Name: TestS3
Method Name: test_parse_public_s3_bucket_chunked_python
Project Name: pandas-dev/pandas
Commit Name: 5011a371a54f1dcf5a01d6e23b2331aab405667e
Time: 2020-12-04
Author: twoertwein@users.noreply.github.com
File Name: pandas/tests/io/parser/test_network.py
Class Name: TestS3
Method Name: test_parse_public_s3_bucket_chunked