Converting and formatting date strings

Report a typo

Complete the function called format_date() that takes a date string in the format 'YYYY-MM-DD' and returns the date in the format 'Month DD, YYYY'. Use the Pandas library to achieve this.

Note that you don't have to call the format_date() function yourself or write any print() statements.

Sample Input 1:

2022-01-01

Sample Output 1:

January 01, 2022
Write a program in Python 3
import pandas as pd

def format_date(date_str: str) -> str:
# Your code here
pass

Create a free account to access the full topic