How to Help Clients Create Healthy Financial Routines

Most of the people I know have an established, regular pattern when it comes to keeping their teeth clean or their hair trimmed. They create a routine because they know that the more regular they…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




By Any Other Name

Comparing names with Python/Pandas

Like a teacher taking role, his finger slid down a list of names looking for a match. Every list had to be audited name by name. A list of terminated employees was cross-checked: nope, not there. A much longer list of current staff — called “The Census” — was reviewed: and there it was. The name was on the list, access granted, noted, and checked off. Next.

Ugh — SOX audits. Every company application carrying financial data — be it Tableau, Cubes, or the DataLake — has to be secured against even internal employees. Until these apps use central sign-on, they each have a different directory of users, where nicknames or misspellings lurk under human fingers.

Let’s save this guy’s (who was me, by the way) sanity, and automate the name checks using Python/Pandas. A name-for-name comparison tool should be simple enough. But we’ll also need to catch exception cases where name punctuation (O’Hara) and spacing (de Boers) could throw off the matching. And when names don’t find a match on either list, we should provide hints as to possible matches (could the userlist have ‘Alex’ while the census has ‘Alexandra’?). And output the whole thing into a clean Excel sheet to help the auditor AND provide documentation for outside audits.

We already have lists of Last,First names: Census contains our current employees (or players, in the World Cup example), Terms lists our former employees or players. Our whole purpose is to compare an unverified list of Users to determine if they match the Census or Terms.

Let’s write a simple Python function using the Pandas module to ingest these 3 files, which can be in either .csv or .xlsx format.

Add a comment

Related posts:

Analysis criteria

CoinFly analysts have drilled down the data on Ethereum mining in several countries and have calculated how its profitability is changed using CoinFly. The results are pretty interesting. The list of…

Why is Chad in the list?

Chad is a Central African country that is in the American news stream, of late, for all the wrong reasons. Many Americans are in fact finding out right now that a country named Chad actually exists…

Cynthia Parker Bio

Cynthia Parker is a talented young beauty from Toronto, Ontario, Canada who is best known as a TikTok star and social media influencer. She has accrued over 5 million fans to her “cynthiaparkerrrr”…