Search
Searching.
- pandas.Series.dt (Python method, in pandas.Series.dt)
- Essential basic functionality
...randn(1000)) In [5]: long_series.head() Out[5]: 0 -1.157892 1 -1.344312 2 0.844885 3 1.075770 4 -0.109050 dtype: float64 In [6]: long_series.tail(3) Out[6]: 997 -0.289388 998 -1.020544 999 0.589993 dtype: float64...
- pandas.Series.dt
pandas.Series.dt Series.dt()[source] Accessor object for datetimelike properties of the Series values. Examples >>> seconds_series = pd.Series(pd.date_range("2000-01-01", periods=3, freq="s")) >>> seconds_series 0...
- pandas.Series.dt.as_unit
pandas.Series.dt.as_unit Series.dt.as_unit(*args, **kwargs)[source]
- pandas.Series.dt.ceil
pandas.Series.dt.ceil Series.dt.ceil(*args, **kwargs)[source] Perform ceil operation on the data to the specified freq. Parameters: freqstr or OffsetThe frequency level to ceil the index to. Must be a fixed freque...
- pandas.Series.dt.components
pandas.Series.dt.components Series.dt.components[source] Return a Dataframe of the components of the Timedeltas. Returns: DataFrame Examples >>> s = pd.Series(pd.to_timedelta(np.arange(5), unit='s')) >>> s 0...
- pandas.Series.dt.date
pandas.Series.dt.date Series.dt.date[source] Returns numpy array of python datetime.date objects. Namely, the date part of Timestamps without time and timezone information. Examples For Series: >>> s = pd.Series(["1...
- pandas.Series.dt.day
pandas.Series.dt.day Series.dt.day[source] The day of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="D") ... ) >>> datetime_series 0 2000-01-01 1 200...
- pandas.Series.dt.day_name
pandas.Series.dt.day_name Series.dt.day_name(*args, **kwargs)[source] Return the day names with specified locale. Parameters: localestr, optionalLocale determining the language in which to return the day name. Def...
- pandas.Series.dt.day_of_week
pandas.Series.dt.day_of_week Series.dt.day_of_week[source] The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday w...
- pandas.Series.dt.day_of_year
pandas.Series.dt.day_of_year Series.dt.day_of_year[source] The ordinal day of the year. Examples For Series: >>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]) >>> s = pd.to_datetime(s) >>> s...
- pandas.Series.dt.dayofweek
pandas.Series.dt.dayofweek Series.dt.dayofweek[source] The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which...
- pandas.Series.dt.dayofyear
pandas.Series.dt.dayofyear Series.dt.dayofyear[source] The ordinal day of the year. Examples For Series: >>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]) >>> s = pd.to_datetime(s) >>> s 0...
- pandas.Series.dt.days
pandas.Series.dt.days Series.dt.days[source] Number of days for each element. Examples For Series: >>> ser = pd.Series(pd.to_timedelta([1, 2, 3], unit='d')) >>> ser 0 1 days 1 2 days 2 3 days dtype: timedelta6...
- pandas.Series.dt.days_in_month
pandas.Series.dt.days_in_month Series.dt.days_in_month[source] The number of days in the month. Examples >>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]) >>> s = pd.to_datetime(s) >>> s 0...
- pandas.Series.dt.daysinmonth
pandas.Series.dt.daysinmonth Series.dt.daysinmonth[source] The number of days in the month. Examples >>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]) >>> s = pd.to_datetime(s) >>> s 0 2020...
- pandas.Series.dt.end_time
pandas.Series.dt.end_time Series.dt.end_time[source] Get the Timestamp for the end of the period. Returns: Timestamp See also Period.start_timeReturn the start Timestamp. Period.dayofyearReturn the day of ye...
- pandas.Series.dt.floor
- pandas.Series.dt.freq
- pandas.Series.dt.hour
- pandas.Series.dt.is_leap_year
- pandas.Series.dt.is_month_end
- pandas.Series.dt.is_month_start
- pandas.Series.dt.is_quarter_end
- pandas.Series.dt.is_quarter_start
- pandas.Series.dt.is_year_end
- pandas.Series.dt.is_year_start
- pandas.Series.dt.isocalendar
- pandas.Series.dt.microsecond
- pandas.Series.dt.microseconds
- pandas.Series.dt.minute
- pandas.Series.dt.month
- pandas.Series.dt.month_name
- pandas.Series.dt.nanosecond
- pandas.Series.dt.nanoseconds
- pandas.Series.dt.normalize
- pandas.Series.dt.quarter
- pandas.Series.dt.qyear
- pandas.Series.dt.round
- pandas.Series.dt.second
- pandas.Series.dt.seconds
- pandas.Series.dt.start_time
- pandas.Series.dt.strftime
- pandas.Series.dt.time
- pandas.Series.dt.timetz
- pandas.Series.dt.to_period
- pandas.Series.dt.to_pydatetime
- pandas.Series.dt.to_pytimedelta
- pandas.Series.dt.total_seconds
- pandas.Series.dt.tz
- pandas.Series.dt.tz_convert
- pandas.Series.dt.tz_localize
- pandas.Series.dt.unit
- pandas.Series.dt.weekday
- pandas.Series.dt.year
- Version 0.15.0 (October 18, 2014)
- Version 0.17.0 (October 9, 2015)
- What’s new in 0.24.0 (January 25, 2019)
- pandas.api.extensions.ExtensionArray.dtype (Python property, in pandas.api.extensions.ExtensionArray.dtype)
- pandas.api.extensions.ExtensionDtype (Python class, in pandas.api.extensions.ExtensionDtype)
- pandas.api.extensions.register_extension_dtype (Python function, in pandas.api.extensions.register_extension_dtype)
- pandas.api.types.infer_dtype (Python function, in pandas.api.types.infer_dtype)
- pandas.api.types.is_any_real_numeric_dtype (Python function, in pandas.api.types.is_any_real_numeric_dtype)
- pandas.api.types.is_bool_dtype (Python function, in pandas.api.types.is_bool_dtype)
- pandas.api.types.is_categorical_dtype (Python function, in pandas.api.types.is_categorical_dtype)