回答編集履歴

1

Series追記

2018/11/25 00:24

投稿

can110
can110

スコア38262

test CHANGED
@@ -29,3 +29,37 @@
29
29
  """
30
30
 
31
31
  ```
32
+
33
+
34
+
35
+ また、Seriesを結合する場合は`concat`が使えます。
36
+
37
+ 参考:[Combining two series in pandas along their index [duplicate]](https://stackoverflow.com/questions/18083187/combining-two-series-in-pandas-along-their-index)
38
+
39
+
40
+
41
+ ```Python
42
+
43
+ import pandas as pd
44
+
45
+ frame1 = pd.Series([1.11,2.22,3.33])
46
+
47
+ frame2 = pd.Series([4.44,5.55,6.66])
48
+
49
+ ret = pd.concat([frame1, frame2], axis=1)
50
+
51
+ print(ret)
52
+
53
+ """
54
+
55
+ 0 1
56
+
57
+ 0 1.11 4.44
58
+
59
+ 1 2.22 5.55
60
+
61
+ 2 3.33 6.66
62
+
63
+ """
64
+
65
+ ```