Skip to content
Snippets Groups Projects
Commit d8f32bac authored by Sören Henning's avatar Sören Henning
Browse files

Revert accesing columns by name

parent e8f2a118
No related branches found
No related tags found
3 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Pipeline #2826 canceled
......@@ -9,9 +9,9 @@ def compute(data, warmup_sec):
print(regress)
X = regress.iloc[:, 'timestamp'].values.reshape(-1, 1) # values converts it into a numpy array
X = regress.iloc[:, 2].values.reshape(-1, 1) # values converts it into a numpy array
print(X)
Y = regress.iloc[:, 'value'].values.reshape(-1, 1) # -1 means that calculate the dimension of rows, but have 1 column
Y = regress.iloc[:, 3].values.reshape(-1, 1) # -1 means that calculate the dimension of rows, but have 1 column
print(Y)
linear_regressor = LinearRegression() # create object for the class
linear_regressor.fit(X, Y) # perform linear regression
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment