Index.take()

pandas.Index.take

Index.take(indices, axis=0, allow_fill=True, fill_value=None, **kwargs) [source]

return a new Index of the values selected by the indices

For internal compatibility with numpy arrays.

Parameters:

indices : list

Indices to be taken

axis : int, optional

The axis over which to select values, always 0.

allow_fill : bool, default True

fill_value : bool, default None

If allow_fill=True and fill_value is not None, indices specified by -1 is regarded as NA. If Index doesn’t hold NA, raise ValueError

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.20.2/generated/pandas.Index.take.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部