pandas.PeriodDtype

class pandas.PeriodDtype[source]

A Period duck-typed class, suitable for holding a period with freq dtype.

THIS IS NOT A REAL NUMPY DTYPE, but essentially a sub-class of np.int64.

Attributes

na_value float(x) -> floating point number
name A string identifying the data type.
names Ordered list of field names, or None if there are no fields.
subdtype  

Methods

construct_array_type() Return the array type associated with this dtype
construct_from_string(string) Strict construction from a string, raise a TypeError if not possible
is_dtype(dtype) Return a boolean if we if the passed type is an actual dtype that we can match (via string or type)
reset_cache() clear the cache
type alias of pandas._libs.tslibs.period.Period
Scroll To Top