回答編集履歴
2
追記
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
> You can refer to column names that contain spaces or operators by surrounding them in backticks. This way you can also escape names that start with a digit, or those that are a Python keyword. Basically when it is not valid Python identifier. See notes down for more details.
|
2
|
+
|
3
|
+
For example, if one of your columns is called `a a` and you want to sum it with `b`, your query should be `` `a a` + b ``.
|
2
4
|
|
3
5
|
[pandas.DataFrame.query — pandas 1.0.1 documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.query.html)
|
4
6
|
|
@@ -6,7 +8,7 @@
|
|
6
8
|
|
7
9
|
|
8
10
|
|
9
|
-
|
11
|
+
`` ` ``で囲うことで、こんな感じでエスケープできるはずです。
|
10
12
|
|
11
13
|
|
12
14
|
|
1
追記
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
こんな感じでエスケープできるはずです。
|
9
|
+
**`**で囲うことで、こんな感じでエスケープできるはずです。
|
10
10
|
|
11
11
|
|
12
12
|
|