Skip to content

Instantly share code, notes, and snippets.

View Sheikh2Imran's full-sized avatar
🎯
Focusing

Md Imran Sheikh Sheikh2Imran

🎯
Focusing
View GitHub Profile
Q. What attributes do you look for in a company when applying for a position?
A. Technical stack, learning graph, company's vision and culture.
Q. What are the three to five expectations that you have of senior leaders in an organization where you’ll work successfully?
A. My senior should be helpful, co-operative, friendly and have clear understanding about what we are doing and going to do.
Q. At times your workload may feel unmanageable. Describe a time when you recognized that you were unable to meet multiple deadlines. What did you do about it?
A. I will try to meet at least one deadline according to product priority.
Q. Tell me about a time you worked on a team with individuals from different cultural backgrounds.
@Sheikh2Imran
Sheikh2Imran / gist:a2669865bd3ab19b8ac3b1d4c4d4fc84
Created February 23, 2020 13:07
Fuzzy merge function to merge two dataframe
def fuzzy_merge_df1_and_df2(self, df_1, df_2, key1, key2, threshold=50, limit=2):
"""
df_1 is the left table to join
df_2 is the right table to join
key1 is the key column of the left table
key2 is the key column of the right table
threshold is how close the matches should be to return a match, based on Levenshtein distance
limit is the amount of matches that will get returned, these are sorted high to low
"""
s = df_2[key2].tolist()
import ast
import json
def parse_json_string(text, default={}):
"""
function to parse the json string
into json parse or dict
:param `text` is the value of text model to parse.
:paran `default` is default output, eg: {}, []