本文整理匯總了Python中OperationUtils.data_operations.DataCleaning.internationalizeFuel方法的典型用法代碼示例。如果您正苦於以下問題:Python DataCleaning.internationalizeFuel方法的具體用法?Python DataCleaning.internationalizeFuel怎麽用?Python DataCleaning.internationalizeFuel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OperationUtils.data_operations.DataCleaning
的用法示例。
在下文中一共展示了DataCleaning.internationalizeFuel方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_internationalizes_fuel_hybrid
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_hybrid(self):
toInternationalize = "hybryda"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "hybrid")
示例2: test_internationalizes_fuel_unknown
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_unknown(self):
toInternationalize = "aaabbb"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "unknown")
示例3: test_internationalizes_fuel_other
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_other(self):
toInternationalize = "inny"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "other")
示例4: test_internationalizes_fuel_ethanol
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_ethanol(self):
toInternationalize = "etanol"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "ethanol")
示例5: test_internationalizes_fuel_hydrogen
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_hydrogen(self):
toInternationalize = "wodor"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "hydrogen")
示例6: test_internationalizes_fuel_electric
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_electric(self):
toInternationalize = "elektryczny"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "electric")
示例7: test_internationalizes_fuel_petrol_cng2
# 需要導入模塊: from OperationUtils.data_operations import DataCleaning [as 別名]
# 或者: from OperationUtils.data_operations.DataCleaning import internationalizeFuel [as 別名]
def test_internationalizes_fuel_petrol_cng2(self):
toInternationalize = "benzyna+cng"
self.assertEqual(DataCleaning.internationalizeFuel(toInternationalize), "petrol + cng")