AI Features

Create a Pandas Timestamp and date_range Object

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

We'll cover the following...

Try it yourself

Try executing the code below to see the result.

Python 3.8
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 ...