Pandas → T-SQL › str.contains

Pandas str.contains to LIKE / PATINDEX

Contains is the expensive LIKE. Starts-with is the cheap one.

SELECT * FROM Customers
WHERE email LIKE '%harbour%';

na=False is AND email IS NOT NULL. case=False needs a CI collation or LOWER — LOWER is not SARGable.

Canonical translation

SELECT * FROM Customers
WHERE email LIKE '%harbour%';

Then write it on a ticket

Monday is free. A colleague asks, you type, we mark it.

Clock in free