/usr/local/lib64/python3.6/site-packages/pandas/tests/indexes/datetimes
NameSizeModeActions
__pycache__/-0755rm
test_astype.py112700644editdlrm
test_constructors.py393160644editdlrm
test_datetime.py153550644editdlrm
test_datetimelike.py9910644editdlrm
test_date_range.py367740644editdlrm
test_delete.py45770644editdlrm
test_fillna.py20040644editdlrm
test_formats.py84110644editdlrm
test_indexing.py240610644editdlrm
test_insert.py70800644editdlrm
test_join.py47680644editdlrm
test_map.py13450644editdlrm
test_misc.py154880644editdlrm
test_ops.py158320644editdlrm
test_partial_slicing.py147180644editdlrm
test_pickle.py13420644editdlrm
test_scalar_compat.py121590644editdlrm
test_setops.py193720644editdlrm
test_shift.py52900644editdlrm
test_snap.py11820644editdlrm
test_timezones.py450250644editdlrm
test_to_period.py65570644editdlrm
__init__.py00644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pandas/tests/indexes/datetimes/test_fillna.py (2004B)
import pytest import pandas as pd import pandas._testing as tm class TestDatetimeIndexFillNA: @pytest.mark.parametrize("tz", ["US/Eastern", "Asia/Tokyo"]) def test_fillna_datetime64(self, tz): # GH 11343 idx = pd.DatetimeIndex(["2011-01-01 09:00", pd.NaT, "2011-01-01 11:00"]) exp = pd.DatetimeIndex( ["2011-01-01 09:00", "2011-01-01 10:00", "2011-01-01 11:00"] ) tm.assert_index_equal(idx.fillna(pd.Timestamp("2011-01-01 10:00")), exp) # tz mismatch exp = pd.Index( [ pd.Timestamp("2011-01-01 09:00"), pd.Timestamp("2011-01-01 10:00", tz=tz), pd.Timestamp("2011-01-01 11:00"), ], dtype=object, ) tm.assert_index_equal(idx.fillna(pd.Timestamp("2011-01-01 10:00", tz=tz)), exp) # object exp = pd.Index( [pd.Timestamp("2011-01-01 09:00"), "x", pd.Timestamp("2011-01-01 11:00")], dtype=object, ) tm.assert_index_equal(idx.fillna("x"), exp) idx = pd.DatetimeIndex(["2011-01-01 09:00", pd.NaT, "2011-01-01 11:00"], tz=tz) exp = pd.DatetimeIndex( ["2011-01-01 09:00", "2011-01-01 10:00", "2011-01-01 11:00"], tz=tz ) tm.assert_index_equal(idx.fillna(pd.Timestamp("2011-01-01 10:00", tz=tz)), exp) exp = pd.Index( [ pd.Timestamp("2011-01-01 09:00", tz=tz), pd.Timestamp("2011-01-01 10:00"), pd.Timestamp("2011-01-01 11:00", tz=tz), ], dtype=object, ) tm.assert_index_equal(idx.fillna(pd.Timestamp("2011-01-01 10:00")), exp) # object exp = pd.Index( [ pd.Timestamp("2011-01-01 09:00", tz=tz), "x", pd.Timestamp("2011-01-01 11:00", tz=tz), ], dtype=object, ) tm.assert_index_equal(idx.fillna("x"), exp)