回答編集履歴

1

追記

2017/10/17 12:01

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -1 +1,49 @@
1
1
  lavelsではなくlabelsかと思います。
2
+
3
+ ```Python
4
+
5
+ >>> help(pd.DataFrame.drop)
6
+
7
+ Help on function drop in module pandas.core.generic:
8
+
9
+
10
+
11
+ drop(self, labels, axis=0, level=None, inplace=False, errors='raise')
12
+
13
+ Return new object with labels in requested axis removed.
14
+
15
+
16
+
17
+ Parameters
18
+
19
+ ----------
20
+
21
+ labels : single label or list-like
22
+
23
+ axis : int or axis name
24
+
25
+ level : int or level name, default None
26
+
27
+ For MultiIndex
28
+
29
+ inplace : bool, default False
30
+
31
+ If True, do operation inplace and return None.
32
+
33
+ errors : {'ignore', 'raise'}, default 'raise'
34
+
35
+ If 'ignore', suppress error and existing labels are dropped.
36
+
37
+
38
+
39
+ .. versionadded:: 0.16.1
40
+
41
+
42
+
43
+ Returns
44
+
45
+ -------
46
+
47
+ dropped : type of caller
48
+
49
+ ```