VOOZH about

URL: https://www.geeksforgeeks.org/pandas/python-pandas-series-dt-microsecond/

⇱ Python | Pandas Series.dt.microsecond - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | Pandas Series.dt.microsecond

Last Updated : 20 Mar, 2019
Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.microsecond attribute return a numpy array containing the microsecond of the datetime in the underlying data of the given series object.
Syntax: Series.dt.microsecond Parameter : None Returns : numpy array
Example #1: Use Series.dt.microsecond attribute to return the microsecond of the datetime in the underlying data of the given Series object. Output : 👁 Image
Now we will use Series.dt.microsecond attribute to return the microsecond of the datetime in the underlying data of the given Series object. Output : 👁 Image
As we can see in the output, the Series.dt.microsecond attribute has successfully accessed and returned the microsecond of the datetime in the underlying data of the given series object.   Example #2 : Use Series.dt.microsecond attribute to return the microsecond of the datetime in the underlying data of the given Series object. Output : 👁 Image
Now we will use Series.dt.microsecond attribute to return the microsecond of the datetime in the underlying data of the given Series object. Output : 👁 Image
As we can see in the output, the Series.dt.microsecond attribute has successfully accessed and returned the microsecond of the datetime in the underlying data of the given series object.
Comment

Explore