Python | Pandas DatetimeIndex.day_name() Last Updated : 29 Dec, 2018 Comments Improve Suggest changes Like Article Like Report Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.day_name() function return the day names of the DateTimeIndex with specified locale. The default locale is None in which case the names are returned in English language. Syntax: DatetimeIndex.day_name(locale=None) Parameters : locale : locale determining the language in which to return the day name Return : Index of day names Example #1: Use DatetimeIndex.day_name() function to return the names of the day for each entry in the DatetimeIndex object. Return the names of the days in French locale Python3 # importing pandas as pd import pandas as pd # Create the DatetimeIndex # Here 'Q' represents quarterly frequency didx = pd.DatetimeIndex(start ='2018-11-15 09:45:10', freq ='Q', periods = 5) # Print the DatetimeIndex print(didx) Output : Now we want to return the names of the days in French locale. Python3 # return the names of the days in French didx.day_name(locale ='French') Output : As we can see in the output, the function has returned an Index object containing the names of the days in French. Let's return the name of the days in English Python3 # return the names of the days in English didx.day_name(locale ='English') Output : Example #2: Use DatetimeIndex.day_name() function to return the names of the day for each entry in the DatetimeIndex object. Return the names of the day in German locale Python3 # importing pandas as pd import pandas as pd # Create the DatetimeIndex # Here 'M' represents monthly frequency didx = pd.DatetimeIndex(start ='2015-03-02', freq ='M', periods = 5) # Print the DatetimeIndex print(didx) Output : Now we want to return the names of the days in German locale. Python3 # return the names of the days in German didx.day_name(locale ='German') Output : As we can see in the output, the function has returned an Index object containing the names of the day in German locale. Comment More infoAdvertise with us Next Article Python | Pandas DatetimeIndex.dayofweek S Shubham__Ranjan Follow Improve Article Tags : Technical Scripter Python Python-pandas Python pandas-datetimeIndex Practice Tags : python Similar Reads Python | Pandas DatetimeIndex.day Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.day attribute outputs an Index object containing the days in each 2 min read Python | Pandas DatetimeIndex.dayofyear Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.dayofyear attribute outputs the ordinal value of the day of the y 2 min read Python | Pandas DatetimeIndex.dayofweek Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.dayofweek attribute outputs the ordinal value of the day of the w 2 min read Python | Pandas DatetimeIndex.to_frame() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.to_frame() function create a DataFrame with a column containing t 2 min read Python | Pandas DatetimeIndex.minute Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.minute attribute outputs an Index object containing the minute va 2 min read Python | Pandas DatetimeIndex.normalize() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.normalize() function convert times to midnight. The time componen 2 min read Like