New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: add month_name to DatetimeIndex and .dt #12805

Closed
BastiaanBergman opened this Issue Apr 5, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@BastiaanBergman

BastiaanBergman commented Apr 5, 2016

Add a month name property to DatetimeIndex and the .dt accessor; similar to weekday_name (GH12803).

Code Sample:

i = pd.date_range('20150112 08:34:23', periods = 4, freq = '1D')
i.month_name
d = pd.Timestamp("2016-04-04")
d.month_name
s = pd.Series(i, range(4))
s.dt.month_name

Expected Output:

array(['January', 'January', 'January', 'January'], dtype=object)
'April'
0       January
1       January
2       January
3       January
dtype: object
@jreback

This comment has been minimized.

Contributor

jreback commented Apr 6, 2016

xref #11128

@jreback jreback added this to the Next Major Release milestone Apr 6, 2016

@jreback jreback modified the milestones: Next Major Release, 0.22.0 Nov 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment