0

I have currency quotes in pandas dataframe, column 0 - date/time, column 1 - close price. And as its a 1 minute period, there are a lot of gaps. So I need to apply .asfreq(freq='T') on close series, but also I must skip all weekends. How do I do that? Unfourtunately, .asfreq(freq='BT') doesnt work

Roman
  • 47
  • 7

1 Answers1

0
data = data.asfreq('15T')
data = data[data.index.dayofweek<5]

It works this way.

Roman
  • 47
  • 7