Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
JOSSOUD Olivier
CFA Tools
Commits
5f4f24b7
Commit
5f4f24b7
authored
Dec 13, 2021
by
JOSSOUD Olivier
Browse files
Common. Improve column selection (removes warning)
parent
af6dc0eb
Pipeline
#152992
passed with stages
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cfatools/logreader/common.py
cfatools/logreader/common.py
+1
-1
No files found.
cfatools/logreader/common.py
View file @
5f4f24b7
...
...
@@ -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."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment