質問編集履歴
3
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
row(str) in df[1] / df2=(index行x(rowの頭文字候補), 0行目y(変換したい文字列))の2行で構成 #Pandas #Numpy #python
|
1
|
+
row(str) in df[1] / df2=(index行x(rowの頭文字候補), 0行目y(変換したい文字列))の2行で構成) #Pandas #Numpy #python
|
body
CHANGED
File without changes
|
2
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
row(str) in df[1] / df2=
|
1
|
+
row(str) in df[1] / df2=(index行x(rowの頭文字候補), 0行目y(変換したい文字列))の2行で構成 #Pandas #Numpy #python
|
body
CHANGED
File without changes
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
```ここに言語を入力
|
8
8
|
if row.startswith(any of df2[x]):
|
9
|
-
row=df2.at[startswith(index列名)でtrueになったもの,y]
|
9
|
+
row=df2.at[row.startswith(index列名)でtrueになったもの,y]
|
10
10
|
※このx列リストに当てはまらないものはスルーしたいのでifにしています
|
11
11
|
```
|
12
12
|
みたいなことをやりたいです。
|