pandas.Series.drop
Series. drop ( labels=None, axis=0, index=None, columns=None, level=None, inplace=False, errors='raise' ) [source] Return new object with labels in requested axis removed. 去除指定轴向的数据。以下参数操作灵活,可以有不同路径完成同一目的 Parameters: labels: single label or list-like Index or column labels to drop. axis: int or axis name Whether to drop labels from the index (0 / ‘index’) or columns (1 / ‘columns’). index, columns: single label or list-like Alternative to specifyingaxis(labels,axis=1is equivalent tocolumns=label...