Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 262 Bytes

pandas.md

File metadata and controls

10 lines (8 loc) · 262 Bytes

Pandas

Get 1st and 3rd Fridays

first = pd.date_range('2022-01-01', '2022-12-31', freq='WOM-1FRI')
third = pd.date_range('2022-01-01', '2022-12-31', freq='WOM-3FRI')
both = pd.Series(sorted(first.union(third)))