doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
pandas.Timedelta.resolution Timedelta.resolution=Timedelta('0 days 00:00:00.000000001')
pandas.reference.api.pandas.timedelta.resolution
pandas.Timedelta.resolution_string Timedelta.resolution_string Return a string representing the lowest timedelta resolution. Each timedelta has a defined resolution that represents the lowest OR most granular level of precision. Each level of resolution is represented by a short string as defined below: Resolution:...
pandas.reference.api.pandas.timedelta.resolution_string
pandas.Timedelta.round Timedelta.round(freq) Round the Timedelta to the specified resolution. Parameters freq:str Frequency string indicating the rounding resolution. Returns a new Timedelta rounded to the given resolution of freq Raises ValueError if the freq cannot be converted
pandas.reference.api.pandas.timedelta.round
pandas.Timedelta.seconds Timedelta.seconds Number of seconds (>= 0 and less than 1 day).
pandas.reference.api.pandas.timedelta.seconds
pandas.Timedelta.to_numpy Timedelta.to_numpy() Convert the Timedelta to a NumPy timedelta64. New in version 0.25.0. This is an alias method for Timedelta.to_timedelta64(). The dtype and copy parameters are available here only for compatibility. Their values will not affect the return value. Returns numpy.timed...
pandas.reference.api.pandas.timedelta.to_numpy
pandas.Timedelta.to_pytimedelta Timedelta.to_pytimedelta() Convert a pandas Timedelta object into a python datetime.timedelta object. Timedelta objects are internally saved as numpy datetime64[ns] dtype. Use to_pytimedelta() to convert to object dtype. Returns datetime.timedelta or numpy.array of datetime.timede...
pandas.reference.api.pandas.timedelta.to_pytimedelta
pandas.Timedelta.to_timedelta64 Timedelta.to_timedelta64() Return a numpy.timedelta64 object with ‘ns’ precision.
pandas.reference.api.pandas.timedelta.to_timedelta64
pandas.Timedelta.total_seconds Timedelta.total_seconds() Total seconds in the duration.
pandas.reference.api.pandas.timedelta.total_seconds
pandas.Timedelta.value Timedelta.value
pandas.reference.api.pandas.timedelta.value
pandas.Timedelta.view Timedelta.view() Array view compatibility.
pandas.reference.api.pandas.timedelta.view
pandas.timedelta_range pandas.timedelta_range(start=None, end=None, periods=None, freq=None, name=None, closed=None)[source] Return a fixed frequency TimedeltaIndex, with day as the default frequency. Parameters start:str or timedelta-like, default None Left bound for generating timedeltas. end:str or timed...
pandas.reference.api.pandas.timedelta_range
pandas.TimedeltaIndex classpandas.TimedeltaIndex(data=None, unit=None, freq=NoDefault.no_default, closed=None, dtype=dtype('<m8[ns]'), copy=False, name=None)[source] Immutable ndarray of timedelta64 data, represented internally as int64, and which can be boxed to timedelta objects. Parameters data:array-like (1...
pandas.reference.api.pandas.timedeltaindex
pandas.TimedeltaIndex.ceil TimedeltaIndex.ceil(*args, **kwargs)[source] Perform ceil operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to ceil the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possib...
pandas.reference.api.pandas.timedeltaindex.ceil
pandas.TimedeltaIndex.components propertyTimedeltaIndex.components Return a dataframe of the components (days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas. Returns DataFrame
pandas.reference.api.pandas.timedeltaindex.components
pandas.TimedeltaIndex.days propertyTimedeltaIndex.days Number of days for each element.
pandas.reference.api.pandas.timedeltaindex.days
pandas.TimedeltaIndex.floor TimedeltaIndex.floor(*args, **kwargs)[source] Perform floor operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to floor the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of po...
pandas.reference.api.pandas.timedeltaindex.floor
pandas.TimedeltaIndex.inferred_freq TimedeltaIndex.inferred_freq Tries to return a string representing a frequency guess, generated by infer_freq. Returns None if it can’t autodetect the frequency.
pandas.reference.api.pandas.timedeltaindex.inferred_freq
pandas.TimedeltaIndex.mean TimedeltaIndex.mean(*args, **kwargs)[source] Return the mean value of the Array. New in version 0.25.0. Parameters skipna:bool, default True Whether to ignore any NaT elements. axis:int, optional, default 0 Returns scalar Timestamp or Timedelta. See also numpy.ndarra...
pandas.reference.api.pandas.timedeltaindex.mean
pandas.TimedeltaIndex.microseconds propertyTimedeltaIndex.microseconds Number of microseconds (>= 0 and less than 1 second) for each element.
pandas.reference.api.pandas.timedeltaindex.microseconds
pandas.TimedeltaIndex.nanoseconds propertyTimedeltaIndex.nanoseconds Number of nanoseconds (>= 0 and less than 1 microsecond) for each element.
pandas.reference.api.pandas.timedeltaindex.nanoseconds
pandas.TimedeltaIndex.round TimedeltaIndex.round(*args, **kwargs)[source] Perform round operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to round the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of po...
pandas.reference.api.pandas.timedeltaindex.round
pandas.TimedeltaIndex.seconds propertyTimedeltaIndex.seconds Number of seconds (>= 0 and less than 1 day) for each element.
pandas.reference.api.pandas.timedeltaindex.seconds
pandas.TimedeltaIndex.to_frame TimedeltaIndex.to_frame(index=True, name=NoDefault.no_default)[source] Create a DataFrame with a column containing the Index. Parameters index:bool, default True Set the index of the returned DataFrame as the original Index. name:object, default None The passed name should s...
pandas.reference.api.pandas.timedeltaindex.to_frame
pandas.TimedeltaIndex.to_pytimedelta TimedeltaIndex.to_pytimedelta(*args, **kwargs)[source] Return Timedelta Array/Index as object ndarray of datetime.timedelta objects. Returns timedeltas:ndarray[object]
pandas.reference.api.pandas.timedeltaindex.to_pytimedelta
pandas.TimedeltaIndex.to_series TimedeltaIndex.to_series(index=None, name=None)[source] Create a Series with both index and values equal to the index keys. Useful with map for returning an indexer based on an index. Parameters index:Index, optional Index of resulting Series. If None, defaults to original inde...
pandas.reference.api.pandas.timedeltaindex.to_series
pandas.Timestamp classpandas.Timestamp(ts_input=<object object>, freq=None, tz=None, unit=None, year=None, month=None, day=None, hour=None, minute=None, second=None, microsecond=None, nanosecond=None, tzinfo=None, *, fold=None) Pandas replacement for python datetime.datetime object. Timestamp is the pandas equivale...
pandas.reference.api.pandas.timestamp
pandas.Timestamp.asm8 Timestamp.asm8 Return numpy datetime64 format in nanoseconds. Examples >>> ts = pd.Timestamp(2020, 3, 14, 15) >>> ts.asm8 numpy.datetime64('2020-03-14T15:00:00.000000000')
pandas.reference.api.pandas.timestamp.asm8
pandas.Timestamp.astimezone Timestamp.astimezone(tz) Convert timezone-aware Timestamp to another time zone. Parameters tz:str, pytz.timezone, dateutil.tz.tzfile or None Time zone for time which Timestamp will be converted to. None will remove timezone holding UTC time. Returns converted:Timestamp Rai...
pandas.reference.api.pandas.timestamp.astimezone
pandas.Timestamp.ceil Timestamp.ceil(freq, ambiguous='raise', nonexistent='raise') Return a new Timestamp ceiled to this resolution. Parameters freq:str Frequency string indicating the ceiling resolution. ambiguous:bool or {‘raise’, ‘NaT’}, default ‘raise’ The behavior is as follows: bool contains flags ...
pandas.reference.api.pandas.timestamp.ceil
pandas.Timestamp.combine classmethodTimestamp.combine(date, time) Combine date, time into datetime with same date and time fields. Examples >>> from datetime import date, time >>> pd.Timestamp.combine(date(2020, 3, 14), time(15, 30, 15)) Timestamp('2020-03-14 15:30:15')
pandas.reference.api.pandas.timestamp.combine
pandas.Timestamp.ctime Timestamp.ctime() Return ctime() style string.
pandas.reference.api.pandas.timestamp.ctime
pandas.Timestamp.date Timestamp.date() Return date object with same year, month and day.
pandas.reference.api.pandas.timestamp.date
pandas.Timestamp.day Timestamp.day
pandas.reference.api.pandas.timestamp.day
pandas.Timestamp.day_name Timestamp.day_name() Return the day name of the Timestamp with specified locale. Parameters locale:str, default None (English locale) Locale determining the language in which to return the day name. Returns str Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') ...
pandas.reference.api.pandas.timestamp.day_name
pandas.Timestamp.day_of_week Timestamp.day_of_week Return day of the week. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_week 5
pandas.reference.api.pandas.timestamp.day_of_week
pandas.Timestamp.day_of_year Timestamp.day_of_year Return the day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_year 74
pandas.reference.api.pandas.timestamp.day_of_year
pandas.Timestamp.dayofweek Timestamp.dayofweek Return day of the week. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_week 5
pandas.reference.api.pandas.timestamp.dayofweek
pandas.Timestamp.dayofyear Timestamp.dayofyear Return the day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_year 74
pandas.reference.api.pandas.timestamp.dayofyear
pandas.Timestamp.days_in_month Timestamp.days_in_month Return the number of days in the month. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.days_in_month 31
pandas.reference.api.pandas.timestamp.days_in_month
pandas.Timestamp.daysinmonth Timestamp.daysinmonth Return the number of days in the month. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.days_in_month 31
pandas.reference.api.pandas.timestamp.daysinmonth
pandas.Timestamp.dst Timestamp.dst() Return self.tzinfo.dst(self).
pandas.reference.api.pandas.timestamp.dst
pandas.Timestamp.floor Timestamp.floor(freq, ambiguous='raise', nonexistent='raise') Return a new Timestamp floored to this resolution. Parameters freq:str Frequency string indicating the flooring resolution. ambiguous:bool or {‘raise’, ‘NaT’}, default ‘raise’ The behavior is as follows: bool contains fl...
pandas.reference.api.pandas.timestamp.floor
pandas.Timestamp.fold Timestamp.fold
pandas.reference.api.pandas.timestamp.fold
pandas.Timestamp.freq Timestamp.freq
pandas.reference.api.pandas.timestamp.freq
pandas.Timestamp.freqstr propertyTimestamp.freqstr Return the total number of days in the month.
pandas.reference.api.pandas.timestamp.freqstr
pandas.Timestamp.fromisocalendar Timestamp.fromisocalendar() int, int, int -> Construct a date from the ISO year, week number and weekday. This is the inverse of the date.isocalendar() function
pandas.reference.api.pandas.timestamp.fromisocalendar
pandas.Timestamp.fromisoformat Timestamp.fromisoformat() string -> datetime from datetime.isoformat() output
pandas.reference.api.pandas.timestamp.fromisoformat
pandas.Timestamp.fromordinal classmethodTimestamp.fromordinal(ordinal, freq=None, tz=None) Passed an ordinal, translate and convert to a ts. Note: by definition there cannot be any tz info on the ordinal itself. Parameters ordinal:int Date corresponding to a proleptic Gregorian ordinal. freq:str, DateOffset...
pandas.reference.api.pandas.timestamp.fromordinal
pandas.Timestamp.fromtimestamp classmethodTimestamp.fromtimestamp(ts) Transform timestamp[, tz] to tz’s local time from POSIX timestamp. Examples >>> pd.Timestamp.fromtimestamp(1584199972) Timestamp('2020-03-14 15:32:52') Note that the output may change depending on your local time.
pandas.reference.api.pandas.timestamp.fromtimestamp
pandas.Timestamp.hour Timestamp.hour
pandas.reference.api.pandas.timestamp.hour
pandas.Timestamp.is_leap_year Timestamp.is_leap_year Return True if year is a leap year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_leap_year True
pandas.reference.api.pandas.timestamp.is_leap_year
pandas.Timestamp.is_month_end Timestamp.is_month_end Return True if date is last day of month. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_month_end False >>> ts = pd.Timestamp(2020, 12, 31) >>> ts.is_month_end True
pandas.reference.api.pandas.timestamp.is_month_end
pandas.Timestamp.is_month_start Timestamp.is_month_start Return True if date is first day of month. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_month_start False >>> ts = pd.Timestamp(2020, 1, 1) >>> ts.is_month_start True
pandas.reference.api.pandas.timestamp.is_month_start
pandas.Timestamp.is_quarter_end Timestamp.is_quarter_end Return True if date is last day of the quarter. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_quarter_end False >>> ts = pd.Timestamp(2020, 3, 31) >>> ts.is_quarter_end True
pandas.reference.api.pandas.timestamp.is_quarter_end
pandas.Timestamp.is_quarter_start Timestamp.is_quarter_start Return True if date is first day of the quarter. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_quarter_start False >>> ts = pd.Timestamp(2020, 4, 1) >>> ts.is_quarter_start True
pandas.reference.api.pandas.timestamp.is_quarter_start
pandas.Timestamp.is_year_end Timestamp.is_year_end Return True if date is last day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_year_end False >>> ts = pd.Timestamp(2020, 12, 31) >>> ts.is_year_end True
pandas.reference.api.pandas.timestamp.is_year_end
pandas.Timestamp.is_year_start Timestamp.is_year_start Return True if date is first day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_year_start False >>> ts = pd.Timestamp(2020, 1, 1) >>> ts.is_year_start True
pandas.reference.api.pandas.timestamp.is_year_start
pandas.Timestamp.isocalendar Timestamp.isocalendar() Return a 3-tuple containing ISO year, week number, and weekday.
pandas.reference.api.pandas.timestamp.isocalendar
pandas.Timestamp.isoformat Timestamp.isoformat() Return the time formatted according to ISO 8610. The full format looks like ‘YYYY-MM-DD HH:MM:SS.mmmmmmnnn’. By default, the fractional part is omitted if self.microsecond == 0 and self.nanosecond == 0. If self.tzinfo is not None, the UTC offset is also attached, giv...
pandas.reference.api.pandas.timestamp.isoformat
pandas.Timestamp.isoweekday Timestamp.isoweekday() Return the day of the week represented by the date. Monday == 1 … Sunday == 7.
pandas.reference.api.pandas.timestamp.isoweekday
pandas.Timestamp.max Timestamp.max=Timestamp('2262-04-11 23:47:16.854775807')
pandas.reference.api.pandas.timestamp.max
pandas.Timestamp.microsecond Timestamp.microsecond
pandas.reference.api.pandas.timestamp.microsecond
pandas.Timestamp.min Timestamp.min=Timestamp('1677-09-21 00:12:43.145224193')
pandas.reference.api.pandas.timestamp.min
pandas.Timestamp.minute Timestamp.minute
pandas.reference.api.pandas.timestamp.minute
pandas.Timestamp.month Timestamp.month
pandas.reference.api.pandas.timestamp.month
pandas.Timestamp.month_name Timestamp.month_name() Return the month name of the Timestamp with specified locale. Parameters locale:str, default None (English locale) Locale determining the language in which to return the month name. Returns str Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.1925...
pandas.reference.api.pandas.timestamp.month_name
pandas.Timestamp.nanosecond Timestamp.nanosecond
pandas.reference.api.pandas.timestamp.nanosecond
pandas.Timestamp.normalize Timestamp.normalize() Normalize Timestamp to midnight, preserving tz information. Examples >>> ts = pd.Timestamp(2020, 3, 14, 15, 30) >>> ts.normalize() Timestamp('2020-03-14 00:00:00')
pandas.reference.api.pandas.timestamp.normalize
pandas.Timestamp.now classmethodTimestamp.now(tz=None) Return new Timestamp object representing current time local to tz. Parameters tz:str or timezone object, default None Timezone to localize to. Examples >>> pd.Timestamp.now() Timestamp('2020-11-16 22:06:16.378782') Analogous for pd.NaT: >>> pd.N...
pandas.reference.api.pandas.timestamp.now
pandas.Timestamp.quarter Timestamp.quarter Return the quarter of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.quarter 1
pandas.reference.api.pandas.timestamp.quarter
pandas.Timestamp.replace Timestamp.replace(year=None, month=None, day=None, hour=None, minute=None, second=None, microsecond=None, nanosecond=None, tzinfo=<class 'object'>, fold=None) Implements datetime.replace, handles nanoseconds. Parameters year:int, optional month:int, optional day:int, optional hour...
pandas.reference.api.pandas.timestamp.replace
pandas.Timestamp.resolution Timestamp.resolution=Timedelta('0 days 00:00:00.000000001')
pandas.reference.api.pandas.timestamp.resolution
pandas.Timestamp.round Timestamp.round(freq, ambiguous='raise', nonexistent='raise') Round the Timestamp to the specified resolution. Parameters freq:str Frequency string indicating the rounding resolution. ambiguous:bool or {‘raise’, ‘NaT’}, default ‘raise’ The behavior is as follows: bool contains flag...
pandas.reference.api.pandas.timestamp.round
pandas.Timestamp.second Timestamp.second
pandas.reference.api.pandas.timestamp.second
pandas.Timestamp.strftime Timestamp.strftime(format) Return a string representing the given POSIX timestamp controlled by an explicit format string. Parameters format:str Format string to convert Timestamp to string. See strftime documentation for more information on the format string: https://docs.python.org...
pandas.reference.api.pandas.timestamp.strftime
pandas.Timestamp.strptime classmethodTimestamp.strptime(string, format) Function is not implemented. Use pd.to_datetime().
pandas.reference.api.pandas.timestamp.strptime
pandas.Timestamp.time Timestamp.time() Return time object with same time but with tzinfo=None.
pandas.reference.api.pandas.timestamp.time
pandas.Timestamp.timestamp Timestamp.timestamp() Return POSIX timestamp as float. Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548') >>> ts.timestamp() 1584199972.192548
pandas.reference.api.pandas.timestamp.timestamp
pandas.Timestamp.timetuple Timestamp.timetuple() Return time tuple, compatible with time.localtime().
pandas.reference.api.pandas.timestamp.timetuple
pandas.Timestamp.timetz Timestamp.timetz() Return time object with same time and tzinfo.
pandas.reference.api.pandas.timestamp.timetz
pandas.Timestamp.to_datetime64 Timestamp.to_datetime64() Return a numpy.datetime64 object with ‘ns’ precision.
pandas.reference.api.pandas.timestamp.to_datetime64
pandas.Timestamp.to_julian_date Timestamp.to_julian_date() Convert TimeStamp to a Julian Date. 0 Julian date is noon January 1, 4713 BC. Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52') >>> ts.to_julian_date() 2458923.147824074
pandas.reference.api.pandas.timestamp.to_julian_date
pandas.Timestamp.to_numpy Timestamp.to_numpy() Convert the Timestamp to a NumPy datetime64. New in version 0.25.0. This is an alias method for Timestamp.to_datetime64(). The dtype and copy parameters are available here only for compatibility. Their values will not affect the return value. Returns numpy.datetim...
pandas.reference.api.pandas.timestamp.to_numpy
pandas.Timestamp.to_period Timestamp.to_period() Return an period of which this timestamp is an observation. Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') >>> # Year end frequency >>> ts.to_period(freq='Y') Period('2020', 'A-DEC') >>> # Month end frequency >>> ts.to_period(freq='M') Period('20...
pandas.reference.api.pandas.timestamp.to_period
pandas.Timestamp.to_pydatetime Timestamp.to_pydatetime() Convert a Timestamp object to a native Python datetime object. If warn=True, issue a warning if nanoseconds is nonzero. Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548') >>> ts.to_pydatetime() datetime.datetime(2020, 3, 14, 15, 32, 52, 192548) A...
pandas.reference.api.pandas.timestamp.to_pydatetime
pandas.Timestamp.today classmethodTimestamp.today(cls, tz=None) Return the current time in the local timezone. This differs from datetime.today() in that it can be localized to a passed timezone. Parameters tz:str or timezone object, default None Timezone to localize to. Examples >>> pd.Timestamp.today()...
pandas.reference.api.pandas.timestamp.today
pandas.Timestamp.toordinal Timestamp.toordinal() Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
pandas.reference.api.pandas.timestamp.toordinal
pandas.Timestamp.tz propertyTimestamp.tz Alias for tzinfo. Examples >>> ts = pd.Timestamp(1584226800, unit='s', tz='Europe/Stockholm') >>> ts.tz <DstTzInfo 'Europe/Stockholm' CET+1:00:00 STD>
pandas.reference.api.pandas.timestamp.tz
pandas.Timestamp.tz_convert Timestamp.tz_convert(tz) Convert timezone-aware Timestamp to another time zone. Parameters tz:str, pytz.timezone, dateutil.tz.tzfile or None Time zone for time which Timestamp will be converted to. None will remove timezone holding UTC time. Returns converted:Timestamp Rai...
pandas.reference.api.pandas.timestamp.tz_convert
pandas.Timestamp.tz_localize Timestamp.tz_localize(tz, ambiguous='raise', nonexistent='raise') Convert naive Timestamp to local time zone, or remove timezone from timezone-aware Timestamp. Parameters tz:str, pytz.timezone, dateutil.tz.tzfile or None Time zone for time which Timestamp will be converted to. Non...
pandas.reference.api.pandas.timestamp.tz_localize
pandas.Timestamp.tzinfo Timestamp.tzinfo
pandas.reference.api.pandas.timestamp.tzinfo
pandas.Timestamp.tzname Timestamp.tzname() Return self.tzinfo.tzname(self).
pandas.reference.api.pandas.timestamp.tzname
pandas.Timestamp.utcfromtimestamp classmethodTimestamp.utcfromtimestamp(ts) Construct a naive UTC datetime from a POSIX timestamp. Examples >>> pd.Timestamp.utcfromtimestamp(1584199972) Timestamp('2020-03-14 15:32:52')
pandas.reference.api.pandas.timestamp.utcfromtimestamp
pandas.Timestamp.utcnow classmethodTimestamp.utcnow() Return a new Timestamp representing UTC day and time. Examples >>> pd.Timestamp.utcnow() Timestamp('2020-11-16 22:50:18.092888+0000', tz='UTC')
pandas.reference.api.pandas.timestamp.utcnow
pandas.Timestamp.utcoffset Timestamp.utcoffset() Return self.tzinfo.utcoffset(self).
pandas.reference.api.pandas.timestamp.utcoffset
pandas.Timestamp.utctimetuple Timestamp.utctimetuple() Return UTC time tuple, compatible with time.localtime().
pandas.reference.api.pandas.timestamp.utctimetuple
pandas.Timestamp.value Timestamp.value
pandas.reference.api.pandas.timestamp.value
pandas.Timestamp.week Timestamp.week Return the week number of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.week 11
pandas.reference.api.pandas.timestamp.week
pandas.Timestamp.weekday Timestamp.weekday() Return the day of the week represented by the date. Monday == 0 … Sunday == 6.
pandas.reference.api.pandas.timestamp.weekday
pandas.Timestamp.weekofyear Timestamp.weekofyear Return the week number of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.week 11
pandas.reference.api.pandas.timestamp.weekofyear