Skip to content

Commit 6a0099e

Browse files
committed
Merge branch 'master' of https://github.com/pandas-dev/pandas into tslibs-conversion11
2 parents 2b9112a + 5350330 commit 6a0099e

File tree

15 files changed

+564
-573
lines changed

15 files changed

+564
-573
lines changed

doc/source/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ highly performant. If you want to see the actual used levels.
196196
# for a specific level
197197
df[['foo','qux']].columns.get_level_values(0)
198198
199-
To reconstruct the multiindex with only the used levels
199+
To reconstruct the ``MultiIndex`` with only the used levels
200200

201201
.. versionadded:: 0.20.0
202202

pandas/_libs/period.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ from pandas._libs import tslib
3030
from pandas._libs.tslib import Timestamp, iNaT, NaT
3131
from tslibs.timezones cimport (
3232
is_utc, is_tzlocal, get_utcoffset, get_dst_info, maybe_get_tz)
33+
from tslibs.timedeltas cimport delta_to_nanoseconds
3334

3435
from tslibs.parsing import parse_time_string, NAT_SENTINEL
3536
from tslibs.frequencies cimport get_freq_code
@@ -716,8 +717,8 @@ cdef class _Period(object):
716717
if isinstance(other, (timedelta, np.timedelta64, offsets.Tick)):
717718
offset = frequencies.to_offset(self.freq.rule_code)
718719
if isinstance(offset, offsets.Tick):
719-
nanos = tslib._delta_to_nanoseconds(other)
720-
offset_nanos = tslib._delta_to_nanoseconds(offset)
720+
nanos = delta_to_nanoseconds(other)
721+
offset_nanos = delta_to_nanoseconds(offset)
721722

722723
if nanos % offset_nanos == 0:
723724
ordinal = self.ordinal + (nanos // offset_nanos)

pandas/_libs/src/inference.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ from decimal import Decimal
33
cimport util
44
cimport cython
55
from tslibs.nattype import NaT
6-
from tslib cimport convert_to_tsobject, convert_to_timedelta64
6+
from tslib cimport convert_to_tsobject
7+
from tslibs.timedeltas cimport convert_to_timedelta64
78
from tslibs.timezones cimport get_timezone
89
from datetime import datetime, timedelta
910
iNaT = util.get_nat()

pandas/_libs/tslib.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ from numpy cimport ndarray, int64_t
22

33
from tslibs.conversion cimport convert_to_tsobject
44

5-
cpdef convert_to_timedelta64(object, object)
65
cdef bint _check_all_nulls(obj)
76

87
cdef _to_i8(object val)

0 commit comments

Comments
 (0)