Skip to content

Instantly share code, notes, and snippets.


Andrés andresmascl

  • Tata Consultancy Services
  • Santiago, Chile
View GitHub Profile
andresmascl / gist:d87c4a8ca9d0ad7f81fd5f5a3d3b9d42
Last active August 17, 2021 05:23
Take a string and a pandas series. Return which element in the series is the string most similar to, and the percentage of similarity
View gist:d87c4a8ca9d0ad7f81fd5f5a3d3b9d42
from difflib import SequenceMatcher
def similitud(a, serie):
Calculates greatest similarity between a string (a) and a pandas series containing strings
:return: number between 0 and 1 indicating similarity percentage, and element from the
pandas series it is most similar to
andresmascl / gist:cefa963d7ab9fdc5bb13b2351971b073
Created August 17, 2021 05:10
Lista de carreras disponibles en Chile al 2019
View gist:cefa963d7ab9fdc5bb13b2351971b073
Abogado a
Abogado Entrega Corte Suprema
Administrador de Programas Sociales
Administrador de Proyectos de Ecoturismo
Administrador de Redes Computacionales
Administrador en Ecoturismo
Administrador en Turismo y HotelerIa
Administrador TurIstico
Administrador TurIstico Cultural