chore(Linter): reformatted code with black (#211)

* chore(Linter): reformatted code with black

* Create black.yaml
This commit is contained in:
Mark Aron Szulyovszky
2022-02-17 19:22:17 +01:00
committed by GitHub
parent f3fee4a4e1
commit 8dd2d88740
101 changed files with 2595 additions and 2319 deletions
+7 -6
View File
@@ -1,17 +1,18 @@
import pandas as pd
import numpy as np
def from_df_to_sktime_data(x: pd.DataFrame) -> pd.DataFrame:
instance_list = []
instance_list.append([])
x_data = pd.DataFrame(dtype=np.float32)
for i in range(len(x.index)):
instance_list[0].append(pd.Series(x.iloc[i]))
# only dim_0 for univariate time series
for dim in range(len(instance_list)):
x_data['dim_' + str(dim)] = instance_list[dim]
return x_data
x_data["dim_" + str(dim)] = instance_list[dim]
return x_data