카테고리 없음
OHLC RESAMPLE
나스닥171819
2023. 2. 25. 05:41
728x90
반응형
import pandas as pd
import numpy as np
df = pd.DataFrame()
df['german_army'] = np.random.randint(low=20000, high=30000, size=100)
df['allied_army'] = np.random.randint(low=20000, high=40000, size=100)
df.index = pd.date_range('1/1/2014', periods=100, freq='H')
df.head()
print(df.head)
반응형