Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about sequencematcher

Read more about sequencematcher

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - sequencematcher

Using difflib to compare a string with a row in a dataframe

I have a string email = 'joe@gmail.com' and a DF df = DataFrame({ ‘id’: [1, 2, 3], 'email_address': [‘steve@gmail.com’, ‘joe@hotmail.com’, ‘bill@hotmail.com’ ]}) I want to add a column named 'score...
test-img

RiotF

pandas

difflib

sequencematcher

Votes: 0

Answers: 1

Latest Answer

You could use pandas.DataFrame.apply: In [1]: import pandas as pd ...: from difflib import SequenceMatcher In [2]: df = pd.DataFrame({'id': [1, 2, 3], 'email_address': ['steve@gmail.com', 'joe@hotm...
test-img

Sash Sinha

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved