Skip to content

Instantly share code, notes, and snippets.

View huibaobao's full-sized avatar

Jessica huibaobao

  • manhattan, New York
View GitHub Profile
@huibaobao
huibaobao / CKAD.md
Created November 28, 2022 03:22 — forked from veggiemonk/CKAD.md
CKAD exam preparation
@huibaobao
huibaobao / grokking_to_leetcode.md
Created November 4, 2022 14:35 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

# List unique values in a DataFrame column
# h/t @makmanalp for the updated syntax!
df['Column Name'].unique()
# Convert Series datatype to numeric (will error if column has non-numeric values)
# h/t @makmanalp
pd.to_numeric(df['Column Name'])
# Convert Series datatype to numeric, changing non-numeric values to NaN
# h/t @makmanalp for the updated syntax!