I have a multiple Timeseries in different files and I know that Pandas can infer the frequency of the DateTimeIndex for each:
pd.infer_freq(data.index)
Is there a programmatic way to get the approximate frequency per year from general files. For instance:
'M' -> 12
'BM' -> 12
'B' -> 252
'D' -> 365