def asignar_segmento(subsegmento):
if subsegmento in ['Autoconstrucción','Autoconstruccion']:
return 'Autoconstrucción'
elif subsegmento in ['Dumps - Tulsa', 'Bulkers - Tulsa', 'Dumps - Arkansas',
'Bulkers - Arkansas', 'Fuera del Estado', 'Sudamérica']:
return 'Exportación'
elif subsegmento in ['Distribuidor', 'Ferretero', 'ConstruRed']:
return 'Ferretero/Distribuidor'
elif subsegmento == 'Filial':
return 'Filial'
elif subsegmento in ['CUM', 'Dependencia de Gobie', 'Estado',
'Gobierno del Estado', 'Municipios', 'SUMA']:
return 'Gobierno'
elif subsegmento in ['Industry', 'Comercial', 'Infraestructura', 'Industrial']:
return 'Industrial y Comercial'
elif subsegmento == 'Mineria':
return 'Minería'
elif subsegmento in ['Retail', 'Bloquero', 'Concretero', 'Transformista']:
return 'Transformista'
elif subsegmento == 'Vivienda':
return 'Vivienda'
else:
return 'Otro'