teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

2020/12/27 00:47

投稿

退会済みユーザー
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

2020/12/27 00:47

投稿

退会済みユーザー
title CHANGED
@@ -1,1 +1,1 @@
1
- row(str) in df[1] / df2={index行x:rowの頭文字候補, 0行目y:変換したい文字列} #Pandas #Numpy #python
1
+ row(str) in df[1] / df2=(index行x(rowの頭文字候補), 0行目y(変換したい文字列))の2行で構成 #Pandas #Numpy #python
body CHANGED
File without changes

1

2020/12/27 00:46

投稿

退会済みユーザー
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
  みたいなことをやりたいです。