本文整理匯總了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)