本文整理汇总了Python中pandas.core.indexes.datetimes.Int64Index.join方法的典型用法代码示例。如果您正苦于以下问题:Python Int64Index.join方法的具体用法?Python Int64Index.join怎么用?Python Int64Index.join使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pandas.core.indexes.datetimes.Int64Index
的用法示例。
在下文中一共展示了Int64Index.join方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: join
# 需要导入模块: from pandas.core.indexes.datetimes import Int64Index [as 别名]
# 或者: from pandas.core.indexes.datetimes.Int64Index import join [as 别名]
def join(self, other, how='left', level=None, return_indexers=False):
"""
See Index.join
"""
self._assert_can_do_setop(other)
result = Int64Index.join(self, other, how=how, level=level,
return_indexers=return_indexers)
if return_indexers:
result, lidx, ridx = result
return self._apply_meta(result), lidx, ridx
return self._apply_meta(result)
示例2: join
# 需要导入模块: from pandas.core.indexes.datetimes import Int64Index [as 别名]
# 或者: from pandas.core.indexes.datetimes.Int64Index import join [as 别名]
def join(self, other, how='left', level=None, return_indexers=False,
sort=False):
"""
See Index.join
"""
self._assert_can_do_setop(other)
if not isinstance(other, PeriodIndex):
return self.astype(object).join(other, how=how, level=level,
return_indexers=return_indexers,
sort=sort)
result = Int64Index.join(self, other, how=how, level=level,
return_indexers=return_indexers,
sort=sort)
if return_indexers:
result, lidx, ridx = result
return self._apply_meta(result), lidx, ridx
return self._apply_meta(result)