You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
384 B
13 lines
384 B
import numpy as np
|
|
|
|
from pandas import date_range
|
|
import pandas._testing as tm
|
|
|
|
|
|
class TestSplit:
|
|
def test_split_non_utc(self):
|
|
# GH#14042
|
|
indices = date_range("2016-01-01 00:00:00+0200", freq="S", periods=10)
|
|
result = np.split(indices, indices_or_sections=[])[0]
|
|
expected = indices._with_freq(None)
|
|
tm.assert_index_equal(result, expected)
|
|
|