質問編集履歴

2

誤字

2022/02/17 06:34

投稿

EKA
EKA

スコア26

test CHANGED
File without changes
test 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

スコア26

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