mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-09 17:11:05 +00:00
chore(Linter): reformatted code with black (#211)
* chore(Linter): reformatted code with black * Create black.yaml
This commit is contained in:
committed by
GitHub
parent
f3fee4a4e1
commit
8dd2d88740
+6
-5
@@ -1,9 +1,10 @@
|
||||
import pandas as pd
|
||||
|
||||
|
||||
def resample_ohlc(df, period):
|
||||
output = pd.DataFrame()
|
||||
output['open'] = df.open.resample(period).first()
|
||||
output['high'] = df.high.resample(period).max()
|
||||
output['low'] = df.low.resample(period).min()
|
||||
output['close'] = df.close.resample(period).last()
|
||||
return output
|
||||
output["open"] = df.open.resample(period).first()
|
||||
output["high"] = df.high.resample(period).max()
|
||||
output["low"] = df.low.resample(period).min()
|
||||
output["close"] = df.close.resample(period).last()
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user