Skip to main content
removeu 59 caracteres do conteúdo
Fonte Link
    def converte():
      remove = lambda x: x.str.replace(',', '.').astype('float')
      colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration','Infant_mortality',     'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate',  'Deathrate', 'Agriculture', 'Industry', 'Service']
      for item in colunas:
        countries[item] = countries[item].apply(remove)

    converte()
    def converte():
      remove = lambda x: x.str.replace(',', '.').astype('float')
      colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration','Infant_mortality',     'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate',  'Deathrate', 'Agriculture', 'Industry', 'Service']
      for item in colunas:
        countries[item] = countries[item].apply(remove)

    converte()
    remove = lambda x: x.str.replace(',', '.').astype('float')
    colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration','Infant_mortality', 'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate',  'Deathrate', 'Agriculture', 'Industry', 'Service']
    for item in colunas:
      countries[item] = countries[item].apply(remove)
adicionou 49 caracteres ao conteúdo
Fonte Link

def converte(): remove = lambda x: x.str.replace(',', '.').astype('float') colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration', 'Infant_mortality', 'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate', 'Deathrate', 'Agriculture', 'Industry', 'Service'] for item in colunas: df[item] = df[item].apply(remove)

converte()

    def converte():
      remove = lambda x: x.str.replace(',', '.').astype('float')
      colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration','Infant_mortality',     'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate',  'Deathrate', 'Agriculture', 'Industry', 'Service']
      for item in colunas:
        countries[item] = countries[item].apply(remove)

    converte()

def converte(): remove = lambda x: x.str.replace(',', '.').astype('float') colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration', 'Infant_mortality', 'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate', 'Deathrate', 'Agriculture', 'Industry', 'Service'] for item in colunas: df[item] = df[item].apply(remove)

converte()

    def converte():
      remove = lambda x: x.str.replace(',', '.').astype('float')
      colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration','Infant_mortality',     'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate',  'Deathrate', 'Agriculture', 'Industry', 'Service']
      for item in colunas:
        countries[item] = countries[item].apply(remove)

    converte()
Fonte Link

def converte(): remove = lambda x: x.str.replace(',', '.').astype('float') colunas = ['Pop_density', 'Coastline_ratio', 'Net_migration', 'Infant_mortality', 'Literacy', 'Phones_per_1000', 'Arable', 'Crops', 'Other', 'Climate', 'Birthrate', 'Deathrate', 'Agriculture', 'Industry', 'Service'] for item in colunas: df[item] = df[item].apply(remove)

converte()