Skip to content

Commit

Permalink
test: Silence pandas warning. (#93)
Browse files Browse the repository at this point in the history
Silence a pandas warning about default dtype of empty DataFrame by
explicitly specifying a dtype.
  • Loading branch information
mbelak-dtml authored Aug 21, 2023
1 parent 98b31cf commit 3bb0b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_data_type_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_inference():
data_types.infer_data_type(pd.Series([1] + list(range(100)))) == data_types.DataType.NUMERIC
), "Should be numeric"
assert (
data_types.infer_data_type(pd.Series()) == data_types.DataType.UNKNOWN
data_types.infer_data_type(pd.Series(dtype=pd.Float64Dtype)) == data_types.DataType.UNKNOWN
), "Should be unknown"
assert data_types.infer_data_type(
pd.Series([True, False]) == data_types.DataType.BOOLEAN
Expand Down

0 comments on commit 3bb0b83

Please sign in to comment.