What is the pandas.Timestamp.min attribute in pandas?

Overview

The Pandas.Timestamp is an equivalent of Python’s datetime object. It has an attribute, min, that can be used to obtain the minimum datetime object. This can be generated for a Timestamp object in Pandas.

Syntax

The min attribute has the following syntax:

pandas.Timestamp.min
The syntax for the min attribute in Pandas

Parameter value

The min attribute takes no parameter value.

Return value

The min attribute returns the minimum Timestamp (datetime) object in Pandas.

Example

# A cose to illustrate the min attribute in Pandas
# importing the pandas library
import pandas as pd
# obtaining the min Timestamp value or object in Pandas
min_date = pd.Timestamp.min
print("The minimum date time in Pandas is: ", min_date)

Explanation

  • Line 3: We import the pandas library.
  • Line 6: We obtain the minimum datetime object in Pandas using the min attribute. The result is assigned to a variable named min_date.
  • Line 8: We print the value of the variable min_date.

Free Resources