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

質問編集履歴

2

誤字

2022/02/17 06:34

投稿

EKA
EKA

スコア27

title CHANGED
File without changes
body CHANGED
@@ -12,7 +12,7 @@
12
12
  sampleはstr型の単語がいくつか入っているリストで、
13
13
  Nは整数です。
14
14
 
15
- df_cはfloat型の数字が格納されていてindexsampleのリストがN回繰り返されているものです。
15
+ df_cはfloat型の数字が格納されていてindexsampleのリストがN回繰り返されているものです。
16
16
 
17
17
  ### エラー内容
18
18
  IndexError: iloc cannot enlarge its target object

1

修正

2022/02/17 06:34

投稿

EKA
EKA

スコア27

title CHANGED
File without changes
body CHANGED
@@ -11,11 +11,9 @@
11
11
  ```
12
12
  sampleはstr型の単語がいくつか入っているリストで、
13
13
  Nは整数です。
14
- ```python
15
- df_c = pd.DataFrame(data, index = sample)
16
- ```
17
- で、dataにはfloat型の数字が格納されています。
18
14
 
15
+ df_cはfloat型の数字が格納されていてindexにsampleのリストがN回繰り返されているものです。
16
+
19
17
  ### エラー内容
20
18
  IndexError: iloc cannot enlarge its target object
21
19