本文整理汇总了Python中pandas.core.indexes.base._new_Index方法的典型用法代码示例。如果您正苦于以下问题:Python base._new_Index方法的具体用法?Python base._new_Index怎么用?Python base._new_Index使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pandas.core.indexes.base
的用法示例。
在下文中一共展示了base._new_Index方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __reduce__
# 需要导入模块: from pandas.core.indexes import base [as 别名]
# 或者: from pandas.core.indexes.base import _new_Index [as 别名]
def __reduce__(self):
"""Necessary for making this object picklable"""
d = dict(levels=[lev for lev in self.levels],
codes=[level_codes for level_codes in self.codes],
sortorder=self.sortorder, names=list(self.names))
return ibase._new_Index, (self.__class__, d), None
示例2: __reduce__
# 需要导入模块: from pandas.core.indexes import base [as 别名]
# 或者: from pandas.core.indexes.base import _new_Index [as 别名]
def __reduce__(self):
d = self._get_attributes_dict()
d.update(dict(self._get_data_as_items()))
return ibase._new_Index, (self.__class__, d), None
# --------------------------------------------------------------------
# Rendering Methods
示例3: __reduce__
# 需要导入模块: from pandas.core.indexes import base [as 别名]
# 或者: from pandas.core.indexes.base import _new_Index [as 别名]
def __reduce__(self):
"""Necessary for making this object picklable"""
d = dict(levels=[lev for lev in self.levels],
labels=[label for label in self.labels],
sortorder=self.sortorder, names=list(self.names))
return ibase._new_Index, (self.__class__, d), None
示例4: __reduce__
# 需要导入模块: from pandas.core.indexes import base [as 别名]
# 或者: from pandas.core.indexes.base import _new_Index [as 别名]
def __reduce__(self):
d = self._get_attributes_dict()
d.update(dict(self._get_data_as_items()))
return ibase._new_Index, (self.__class__, d), None