We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e72db commit c1f869fCopy full SHA for c1f869f
lectures/pandas_panel.md
@@ -428,7 +428,7 @@ merged.stack().describe()
428
429
```{code-cell} ipython3
430
grouped = merged.T.groupby(level='Continent')
431
-grouped
+grouped.keys
432
```
433
434
在对象上调用`groupby`方法时,该函数会被应用于每个组,运算结果会被合并到一个新的数据结构中。
@@ -449,7 +449,7 @@ grouped.size()
449
continents = grouped.groups.keys()
450
451
for continent in continents:
452
- sns.kdeplot(grouped.get_group(continent).loc['2015'].unstack(),
+ sns.kdeplot(grouped.get_group(continent).T.loc['2015'].unstack(),
453
label=continent_map[continent], fill=True)
454
455
plt.title('2015年实际最低工资')
0 commit comments