Complete the code to import the correct date locator for setting tick spacing by days.
from matplotlib.dates import [1]
The DayLocator is used to set tick marks spaced by days on a date axis.
Complete the code to create a date locator that places ticks every 3 days.
locator = [1](interval=3)
DayLocator with interval=3 places ticks every 3 days.
Fix the error in the code to set major ticks every Monday using the correct weekday locator.
from matplotlib.dates import WeekdayLocator, MO locator = WeekdayLocator(byweekday=[1])
The WeekdayLocator uses constants like MO to specify weekdays.
Fill both blanks to create a locator that sets ticks every 2 weeks on Wednesday.
from matplotlib.dates import WeekdayLocator, [1] locator = WeekdayLocator(byweekday=[2], interval=2)
Import WE and use it as the byweekday argument to set ticks every 2 weeks on Wednesday.
Fill all three blanks to create a dictionary comprehension that maps dates to values only for dates after January 1, 2020.
filtered_data = {date: value for date, value in data.items() if date [1] datetime(2020, 1, 1) and value [2] 0 and isinstance(value, [3])}The comprehension filters dates greater than January 1, 2020, values greater or equal to 0, and values that are integers.