Skip to content

Commit c579d71

Browse files
BastiaanBastiaan
Bastiaan
authored and
Bastiaan
committed
Tiny fixes as requested by jreback, GH12803.
1 parent 6f246d5 commit c579d71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/series/test_datetime_values.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_dt_namespace_accessor(self):
4141
'weekday_name']
4242
ok_for_dt_methods = ['to_period', 'to_pydatetime', 'tz_localize',
4343
'tz_convert', 'normalize', 'strftime', 'round',
44-
'floor', 'ceil']
44+
'floor', 'ceil', 'weekday_name']
4545
ok_for_td = ['days', 'seconds', 'microseconds', 'nanoseconds']
4646
ok_for_td_methods = ['components', 'to_pytimedelta', 'total_seconds',
4747
'round', 'floor', 'ceil']

pandas/tslib.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4411,7 +4411,7 @@ def get_date_name_field(ndarray[int64_t] dtindex, object field):
44114411

44124412
_dayname = np.array(
44134413
['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
4414-
dtype=np.object_ ) # was np.str
4414+
dtype=np.object_ )
44154415

44164416
count = len(dtindex)
44174417
out = np.empty(count, dtype=object)

0 commit comments

Comments
 (0)