Commit 5f4f24b7 authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

Common. Improve column selection (removes warning)

parent af6dc0eb
Pipeline #152992 passed with stages
in 1 minute and 39 seconds
......@@ -85,7 +85,7 @@ class Reader:
"""
if variable in df.columns:
df = df[[variable]]
df = df.loc[:, [variable]]
df.rename(columns={variable: 'value'}, inplace=True)
else:
raise ValueError("There is no [" + variable + "] column in this dataframe."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment