Difference between pd.Timestamp and pd.to_datetime

what is the difference between these two? I am finding that both are doing the same thing. any insight?

Hi Krishna,
Quoting Pandas Documentation for your reference:

Timestamp is the pandas equivalent of python’s Datetime and is interchangeable with it in most cases. It’s the type used for the entries that make up a DatetimeIndex, and other timeseries oriented data structures in pandas.

1 Like