質問編集履歴

1

エラー文を追加しました。

2022/04/28 05:25

投稿

randyfirst
randyfirst

score19

test CHANGED
File without changes
test CHANGED
@@ -24,11 +24,46 @@
24
24
  エラー
25
25
  ```ここに言語を入力
26
26
  TypeError Traceback (most recent call last)
27
- <ipython-input-46-e02e414dc72b> in <module>
27
+ <ipython-input-12-e02e414dc72b> in <module>
28
28
  5 plt.figure(figsize=(18.495,14.25))
29
29
  6 plt.plot(new_df.index, new_df['Close'],color='black')
30
30
  ----> 7 plt.scatter(new_df.index, new_df['Buy_Signal_Price'], color='green', alpha=1)
31
31
  8 # plt.scatter(new_df.index, new_df['Sell_Signal_Price'], color='red', alpha=1)
32
+ 9
33
+
34
+ ~\anaconda3\envs\crypto\lib\site-packages\matplotlib\pyplot.py in scatter(x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, hold, data, **kwargs)
35
+ 3376 vmin=vmin, vmax=vmax, alpha=alpha,
36
+ 3377 linewidths=linewidths, verts=verts,
37
+ -> 3378 edgecolors=edgecolors, data=data, **kwargs)
38
+ 3379 finally:
39
+ 3380 ax._hold = washold
40
+
41
+ ~\anaconda3\envs\crypto\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
42
+ 1715 warnings.warn(msg % (label_namer, func.__name__),
43
+ 1716 RuntimeWarning, stacklevel=2)
44
+ -> 1717 return func(ax, *args, **kwargs)
45
+ 1718 pre_doc = inner.__doc__
46
+ 1719 if pre_doc is None:
47
+
48
+ ~\anaconda3\envs\crypto\lib\site-packages\matplotlib\axes\_axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, **kwargs)
49
+ 4021 linewidths = rcParams['lines.linewidth']
50
+ 4022
51
+ -> 4023 offsets = np.column_stack([x, y])
52
+ 4024
53
+ 4025 collection = mcoll.PathCollection(
54
+
55
+ <__array_function__ internals> in column_stack(*args, **kwargs)
56
+
57
+ ~\anaconda3\envs\crypto\lib\site-packages\numpy\lib\shape_base.py in column_stack(tup)
58
+ 654 arr = array(arr, copy=False, subok=True, ndmin=2).T
59
+ 655 arrays.append(arr)
60
+ --> 656 return _nx.concatenate(arrays, 1)
61
+ 657
62
+ 658
63
+
64
+ <__array_function__ internals> in concatenate(*args, **kwargs)
65
+
66
+ TypeError: invalid type promotion
32
67
  ```
33
68
 
34
69
  元データ