Python | Pandas Period.second Last Updated : 13 Sep, 2021 Summarize Comments Improve Suggest changes Share 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 Period.second attribute returns an integer value which represents the value of seconds in the given Period object. Syntax : Period.secondParameters : NoneReturn : seconds Example #1: Use Period.second attribute to find the value of seconds present in the given Period object. Python3 # importing pandas as pd import pandas as pd # Create the Period object prd = pd.Period(freq ='S', year = 2000, month = 2, day = 22, hour = 8, minute = 21, second = 24) # Print the Period object print(prd) Output : Now we will use the Period.second attribute to find the number of second in the given period object. Python3 # return the number of seconds prd.second Output : As we can see in the output, the Period.second attribute has returned 24 indicating that the number of seconds in prd object is 24.Example #2: Use Period.second attribute to find the value of seconds present in the given Period object. Python3 # importing pandas as pd import pandas as pd # Create the Period object prd = pd.Period(freq ='S', year = 2006, month = 10, hour = 15, minute = 49, second = 17) # Print the Period object print(prd) Output : Now we will use the Period.second attribute to find the number of second in the given period object. Python3 # return the number of seconds prd.second Output : As we can see in the output, the Period.second attribute has returned 17 indicating that the number of seconds in prd object is 17. Comment More infoAdvertise with us Next Article Python | Pandas Period.week S Shubham__Ranjan Follow Improve Article Tags : Technical Scripter Python Python-pandas Pandas scalar-period Practice Tags : python Similar Reads Python | Pandas PeriodIndex.second 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 PeriodIndex.second attribute return an Index object containing the second value 2 min read Python | Pandas Period.year 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 Period.year attribute return an integer value representing the year the given p 2 min read Python | Pandas Period.week 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 Period.week attribute returns an integer value which represents the week number 2 min read Python | Pandas Period.weekday 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 Period.weekday attribute returns an integer value indicating the weekday of the 2 min read Python | Pandas Period.qyear 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 Period.qyear attribute return the fiscal year the Period lies in according to i 2 min read Python | Pandas Period.strftime 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 Period.strftime() function returns the string representation of the Period, dep 2 min read Like