86ad5c33872131d4ace9365d9cad2b00481f0365,pandas/tests/indexing/test_datetime.py,TestDatetimeIndex,test_getitem_millisecond_resolution,#TestDatetimeIndex#Any#,235
Before Change
[1, 2, 3, 4],
index=[
Timestamp("2017-10-25T16:25:04.151"),
Timestamp("2017-10-25T16:25:04.252"),
Timestamp("2017-10-25T16:50:05.237"),
Timestamp("2017-10-25T16:50:05.238"),
],
After Change
def test_getitem_millisecond_resolution(self, frame_or_series):
// GH/
keys = [
"2017-10-25T16:25:04.151",
"2017-10-25T16:25:04.252",
"2017-10-25T16:50:05.237",
"2017-10-25T16:50:05.238",
]
obj = frame_or_series(
[1, 2, 3, 4],
index=[Timestamp(x) for x in keys],
)
result = obj[keys[1] : keys[2]]
expected = frame_or_series(
[2, 3],
index=[
Timestamp(keys[1]),
Timestamp(keys[2]),
],
)
tm.assert_equal(result, expected)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pandas-dev/pandas
Commit Name: 86ad5c33872131d4ace9365d9cad2b00481f0365
Time: 2021-02-15
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexing/test_datetime.py
Class Name: TestDatetimeIndex
Method Name: test_getitem_millisecond_resolution
Project Name: HDI-Project/MLBlocks
Commit Name: 6a8929b5ccce8004f4babc3102390b3461911304
Time: 2018-05-26
Author: williamxue@Williams-MacBook-Pro.local
File Name: examples/pipelines/multitable/multitable.py
Class Name:
Method Name:
Project Name: HDI-Project/MLBlocks
Commit Name: bd35ff10b4c52b7b6d5a1a089f23bd89eea5346e
Time: 2018-05-26
Author: williamxue@Williams-MacBook-Pro.local
File Name: examples/pipelines/multitable/multitable.py
Class Name:
Method Name: