Create a Pandas Timestamp and date_range Object

Let's find out how to use a pandas Timestamp and date_range.

Try it yourself

Try executing the code below to see the result.

Press + to interact
import pandas as pd
start = pd.Timestamp.fromtimestamp(0).strftime('%Y-%m-%d')
times = pd.date_range(start=start, freq='M', periods=2)
print(times)

Explanation

There are ...

Get hands-on with 1400+ tech skills courses.