Skip to main content
Mejora de título, formato y ortografía
Origen Enlace
aeportugal
  • 10.6k
  • 2
  • 12
  • 24

Hola gente! Estoy intentando pasar Pasar todos los nombres de las columna de inglés a español

!pip install google_trans_new from google_trans_new import google_translator Estoy intentando pasar todos los nombres de las columna de inglés a español

translator = google_translator() translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg', 'secondaryImages', 'category', 'features', 'equipmentHtml', 'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName', 'region', 'hasFlexibleadvantages', 'flexibleadvantages', 'subscriptionType', 'showBadge', 'catalogIndex', 'isPurchasable', 'specificvehicleplanversion', 'price', 'isOnOffer', 'offerPrice', 'allowRemoveExcess', 'removeExcessPrice', 'franchiseValue', 'reducedFranchiseValue', 'sharedUserPrice', 'commitmentMonths', 'addons', 'hasSharedSubscriptionsEnabled', 'typedFeatures.transmission', 'typedFeatures.seats', 'typedFeatures.fuelType', 'typedFeatures.year', 'typedFeatures.modelVersion', 'typedFeatures.status', 'typedFeatures.powerCV', 'typedFeatures.engineCapacityCC', 'contract.kmIncluded', 'contract.extraKmPrice', 'offerBadge.color', 'offerBadge.badgeText', 'badge.defaultLanguage', 'badge.color', 'badge.languages']], lang_src='en', lang_tgt='es')

!pip install google_trans_new

print(translated)

from google_trans_new import google_translator

translator = google_translator()
translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg',
       'secondaryImages', 'category', 'features', 'equipmentHtml',
       'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName',
       'region', 'hasFlexibleadvantages', 'flexibleadvantages',
       'subscriptionType', 'showBadge', 'catalogIndex', 'isPurchasable',
       'specificvehicleplanversion', 'price', 'isOnOffer', 'offerPrice',
       'allowRemoveExcess', 'removeExcessPrice', 'franchiseValue',
       'reducedFranchiseValue', 'sharedUserPrice', 'commitmentMonths',
       'addons', 'hasSharedSubscriptionsEnabled', 'typedFeatures.transmission',
       'typedFeatures.seats', 'typedFeatures.fuelType', 'typedFeatures.year',
       'typedFeatures.modelVersion', 'typedFeatures.status',
       'typedFeatures.powerCV', 'typedFeatures.engineCapacityCC',
       'contract.kmIncluded', 'contract.extraKmPrice', 'offerBadge.color',
       'offerBadge.badgeText', 'badge.defaultLanguage', 'badge.color',
       'badge.languages']], lang_src='en', lang_tgt='es')

print(translated)

Tengo puesto este código pero me sale error TypeError Traceback (most recent call last) in <cell line: 2>() 1 translator = google_translator() ----> 2 translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg', 3 'secondaryImages', 'category', 'features', 'equipmentHtml', 4 'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName', 5 'region', 'hasFlexibleadvantages', 'flexibleadvantages',

TypeError: google_translator.translate() missing 1 required positional argument: 'text'

TypeError                                 Traceback (most recent call last)
<ipython-input-69-f5f68da03f66> in <cell line: 2>()
      1 translator = google_translator()
----> 2 translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg',
      3        'secondaryImages', 'category', 'features', 'equipmentHtml',
      4        'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName',
      5        'region', 'hasFlexibleadvantages', 'flexibleadvantages',

TypeError: google_translator.translate() missing 1 required positional argument: 'text'

Hola gente! Estoy intentando pasar todos los nombres de las columna de inglés a español

!pip install google_trans_new from google_trans_new import google_translator

translator = google_translator() translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg', 'secondaryImages', 'category', 'features', 'equipmentHtml', 'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName', 'region', 'hasFlexibleadvantages', 'flexibleadvantages', 'subscriptionType', 'showBadge', 'catalogIndex', 'isPurchasable', 'specificvehicleplanversion', 'price', 'isOnOffer', 'offerPrice', 'allowRemoveExcess', 'removeExcessPrice', 'franchiseValue', 'reducedFranchiseValue', 'sharedUserPrice', 'commitmentMonths', 'addons', 'hasSharedSubscriptionsEnabled', 'typedFeatures.transmission', 'typedFeatures.seats', 'typedFeatures.fuelType', 'typedFeatures.year', 'typedFeatures.modelVersion', 'typedFeatures.status', 'typedFeatures.powerCV', 'typedFeatures.engineCapacityCC', 'contract.kmIncluded', 'contract.extraKmPrice', 'offerBadge.color', 'offerBadge.badgeText', 'badge.defaultLanguage', 'badge.color', 'badge.languages']], lang_src='en', lang_tgt='es')

print(translated)

Tengo puesto este código pero me sale error TypeError Traceback (most recent call last) in <cell line: 2>() 1 translator = google_translator() ----> 2 translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg', 3 'secondaryImages', 'category', 'features', 'equipmentHtml', 4 'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName', 5 'region', 'hasFlexibleadvantages', 'flexibleadvantages',

TypeError: google_translator.translate() missing 1 required positional argument: 'text'

Pasar todos los nombres de las columna de inglés a español

Estoy intentando pasar todos los nombres de las columna de inglés a español

!pip install google_trans_new
from google_trans_new import google_translator

translator = google_translator()
translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg',
       'secondaryImages', 'category', 'features', 'equipmentHtml',
       'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName',
       'region', 'hasFlexibleadvantages', 'flexibleadvantages',
       'subscriptionType', 'showBadge', 'catalogIndex', 'isPurchasable',
       'specificvehicleplanversion', 'price', 'isOnOffer', 'offerPrice',
       'allowRemoveExcess', 'removeExcessPrice', 'franchiseValue',
       'reducedFranchiseValue', 'sharedUserPrice', 'commitmentMonths',
       'addons', 'hasSharedSubscriptionsEnabled', 'typedFeatures.transmission',
       'typedFeatures.seats', 'typedFeatures.fuelType', 'typedFeatures.year',
       'typedFeatures.modelVersion', 'typedFeatures.status',
       'typedFeatures.powerCV', 'typedFeatures.engineCapacityCC',
       'contract.kmIncluded', 'contract.extraKmPrice', 'offerBadge.color',
       'offerBadge.badgeText', 'badge.defaultLanguage', 'badge.color',
       'badge.languages']], lang_src='en', lang_tgt='es')

print(translated)

Tengo puesto este código pero me sale error

TypeError                                 Traceback (most recent call last)
<ipython-input-69-f5f68da03f66> in <cell line: 2>()
      1 translator = google_translator()
----> 2 translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg',
      3        'secondaryImages', 'category', 'features', 'equipmentHtml',
      4        'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName',
      5        'region', 'hasFlexibleadvantages', 'flexibleadvantages',

TypeError: google_translator.translate() missing 1 required positional argument: 'text'
Origen Enlace

Hola gente! Estoy intentando pasar todos los nombres de las columna de inglés a español

!pip install google_trans_new from google_trans_new import google_translator

translator = google_translator() translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg', 'secondaryImages', 'category', 'features', 'equipmentHtml', 'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName', 'region', 'hasFlexibleadvantages', 'flexibleadvantages', 'subscriptionType', 'showBadge', 'catalogIndex', 'isPurchasable', 'specificvehicleplanversion', 'price', 'isOnOffer', 'offerPrice', 'allowRemoveExcess', 'removeExcessPrice', 'franchiseValue', 'reducedFranchiseValue', 'sharedUserPrice', 'commitmentMonths', 'addons', 'hasSharedSubscriptionsEnabled', 'typedFeatures.transmission', 'typedFeatures.seats', 'typedFeatures.fuelType', 'typedFeatures.year', 'typedFeatures.modelVersion', 'typedFeatures.status', 'typedFeatures.powerCV', 'typedFeatures.engineCapacityCC', 'contract.kmIncluded', 'contract.extraKmPrice', 'offerBadge.color', 'offerBadge.badgeText', 'badge.defaultLanguage', 'badge.color', 'badge.languages']], lang_src='en', lang_tgt='es')

print(translated)

Tengo puesto este código pero me sale error TypeError Traceback (most recent call last) in <cell line: 2>() 1 translator = google_translator() ----> 2 translated = google_translator.translate(df[['Unnamed: 0', '_id', 'mainVehicle', 'vehicleImg', 'campaignImg', 3 'secondaryImages', 'category', 'features', 'equipmentHtml', 4 'mainVehicleBrand', 'mainVehicleModel', 'infoHtml', 'groupName', 5 'region', 'hasFlexibleadvantages', 'flexibleadvantages',

TypeError: google_translator.translate() missing 1 required positional argument: 'text'

Después he hecho lo mismo pero poniendo solo uno