本文整理匯總了Python中pandas._libs.lib.infer_datetimelike_array方法的典型用法代碼示例。如果您正苦於以下問題:Python lib.infer_datetimelike_array方法的具體用法?Python lib.infer_datetimelike_array怎麽用?Python lib.infer_datetimelike_array使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pandas._libs.lib
的用法示例。
在下文中一共展示了lib.infer_datetimelike_array方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_infer_datetimelike_array_datetime
# 需要導入模塊: from pandas._libs import lib [as 別名]
# 或者: from pandas._libs.lib import infer_datetimelike_array [as 別名]
def test_infer_datetimelike_array_datetime(self, data):
assert lib.infer_datetimelike_array(data) == "datetime"
示例2: test_infer_datetimelike_array_timedelta
# 需要導入模塊: from pandas._libs import lib [as 別名]
# 或者: from pandas._libs.lib import infer_datetimelike_array [as 別名]
def test_infer_datetimelike_array_timedelta(self, data):
assert lib.infer_datetimelike_array(data) == "timedelta"
示例3: test_infer_datetimelike_array_date
# 需要導入模塊: from pandas._libs import lib [as 別名]
# 或者: from pandas._libs.lib import infer_datetimelike_array [as 別名]
def test_infer_datetimelike_array_date(self):
arr = [date(2017, 6, 12), date(2017, 3, 11)]
assert lib.infer_datetimelike_array(arr) == "date"
示例4: test_infer_datetimelike_array_mixed
# 需要導入模塊: from pandas._libs import lib [as 別名]
# 或者: from pandas._libs.lib import infer_datetimelike_array [as 別名]
def test_infer_datetimelike_array_mixed(self, data):
assert lib.infer_datetimelike_array(data) == "mixed"
示例5: test_infer_datetimelike_array_nan_nat_like
# 需要導入模塊: from pandas._libs import lib [as 別名]
# 或者: from pandas._libs.lib import infer_datetimelike_array [as 別名]
def test_infer_datetimelike_array_nan_nat_like(self, first, second,
expected):
first.append(second)
assert lib.infer_datetimelike_array(first) == expected