Skip to content

Commit b17fcd6

Browse files
author
Jean-Mathieu Deschenes
committed
Corrections from @jreback comments
* Added test for is_timedelta64_dtype * Added double backticks in what's new
1 parent 779b6f0 commit b17fcd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: doc/source/whatsnew/v0.20.3.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Performance Improvements
3636

3737
Bug Fixes
3838
~~~~~~~~~
39-
- Bug in a DataFrame/Series with a TimedeltaIndex when slice indexing (:issue:`16637`)
39+
- Bug in a DataFrame/Series with a ``TimedeltaIndex`` when slice indexing (:issue:`16637`)
4040
- Fixed issue with dataframe scatter plot for categorical data that reports incorrect column key not found when categorical data is used for plotting (:issue:`16199`)
4141
- Fixed a pytest marker failing downstream packages' tests suites (:issue:`16680`)
4242

Diff for: pandas/tests/dtypes/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_is_datetime64tz_dtype():
200200
def test_is_timedelta64_dtype():
201201
assert not com.is_timedelta64_dtype(object)
202202
assert not com.is_timedelta64_dtype([1, 2, 3])
203-
203+
assert not com.is_timedelta64_dtype(np.array([], dtype=np.datetime64))
204204
assert com.is_timedelta64_dtype(np.timedelta64)
205205
assert com.is_timedelta64_dtype(pd.Series([], dtype="timedelta64[ns]"))
206206

0 commit comments

Comments
 (0)