回答編集履歴
1
コード修正
test
CHANGED
@@ -10,13 +10,15 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
s = """
|
13
|
+
s = """,A,B,C
|
14
14
|
|
15
15
|
one,1,2,3
|
16
16
|
|
17
17
|
two,4,5,6"""
|
18
18
|
|
19
|
-
df = pd.read_csv(StringIO(s), index_col=[
|
19
|
+
df = pd.read_csv(StringIO(s), index_col=[0])
|
20
|
+
|
21
|
+
#df = pd.read_excel("C:\sample\データ.xlsx")
|
20
22
|
|
21
23
|
df.T.plot(kind='bar',stacked=True)
|
22
24
|
|