Jifeng Wu
  • Home
  • Categories
  • Archives
  • About
  •   
  •   
Jifeng Wu's Personal Website

Manipulating `DataFrame`s Using `pandas`

One DataFrame has the columns A, B and another has the columns A, C. How to merge into one DataFrame with columns A, B, and C?You can achieve this using pd.merge() in pandas with the how='outer
2025-08-12
Data Science, Multimedia, and Process Automation

Using DevTools Console for Web Scraping

Convert an HTML Table to a Pandas-compatible JSONIf you want to convert an HTML table to a Pandas-compatible JSON: 1234{ "column1": [value1, value2, ...], "column2": [va
2025-08-12
Data Science, Multimedia, and Process Automation

Powering `clangd`-based C++ IDEs with `compile_commands.json`

What is compile_commands.json?clangd, the C++ language server that powers IDE features in VS Code, CLion, etc. such as code navigation, linting and error detection, and refactoring, requires compile_c
2025-08-11
Environments

英语名词新译

“哎妈呀,这不就是咱们屯子里的那个……吗!” 专有名词 Berkeley 桦林 古英语的 *beorc* 意为桦树,*leah* 意为林地、空地 Carmichael 米哈伊尔堡 苏格兰盖尔语的 caer 意为“要塞”或“堡垒” Cornell 角斗士 古凯尔特语的 corn 意为“角”或“突出物 ”,wall 意为“统治者”或“勇士” Dunbar 山头堡 苏格兰盖尔语的 dùn
2025-07-30
Linguistics and Literature

Metaclass Fundamentals

Metaclasses are one of Python’s most powerful yet least understood features. They enable patterns that would be difficult or impossible with regular class definitions. In this post, we’ll explore meta
2025-07-25
Design Patterns

Creating Custom Data Structures from Abstract Containers in `collections.abc`

Creating Custom Data Structures from Abstract Containers in collections.abcPython’s collections.abc module provides a set of abstract base classes (ABCs) that define the interfaces for various contain
2025-07-24
Design Patterns

Python Packaging: Managing Package Files, Compiling Extension Modules When Building a Wheel, and Uploading to PyPI

Managing Package FilesWhen creating a Python package, the location of files depends on your project structure. Basic pyproject.toml Configuration1234567891011121314151617181920212223242526[build-syste
2025-07-11
DevOps

Managing Development Environments with Conda

When juggling multiple data science or machine learning projects, maintaining isolated, reproducible environments is crucial. conda has emerged as the de facto standard in Python for managing such env
2025-07-10
Environments

用汉语拼音解读国际音标,快速读出任何语言的发音

语言是用来交流的,不是用来炫耀、排斥、孤立的。 你是否遇到过这种情况? 在土耳其旅游,想对店员说一句“Teşekkür ederim”,但看着字母完全不会读? 在冰岛听到地名“Eyjafjallajökull”,直接放弃尝试? 想学几句格鲁吉亚语、阿拉伯语,但连音标都看不懂? 我们大多数人只学过汉语拼音和英语,但国际音标(IPA)里很多符号看起来像天书。其实,它们大多能用拼音的发音“近似替
2025-06-30
Linguistics and Literature

Lessons learned from Master's thesis

Firmly define the research topic. Do literature research based on keywords, never limit the scope of journals and conferences, and continue literature research even after starting the project. Collec
2024-08-23
Reflections
1…34567…13

Search

Hexo Fluid