Generating a date range

Report a typo

You are given two dates: 2022-02-21 and 2022-05-01 (in the YYYY-MM-DD format), and an empty DataFrame. Write a line of code that will create the date column of df and fill it with the values between the specified dates. Print the resulting DataFrame.

Tip: Use pd.date_range() with the specified start and end dates

Write a program in Python 3
import pandas as pd

df = pd.DataFrame()

# Your code here
___

Create a free account to access the full topic