Skip to main content

24 docs tagged with "python"

View all tags

Data Shape for Visualization

Learn how to reshape your data from wide to long format for better visualization in Tableau and tidy data workflows, including Python code examples and practical tips.

Dependency Tradeoffs — Poetry vs PEP 621 (and editable installs)

Explore the tradeoffs between using Poetry and PEP 621 for Python dependency management, focusing on live editing and packaging strategies for local libraries in a development environment. The guide includes scripts and tips for migrating configurations and managing packages efficiently.

Examples

Comparisons of DS&A tasks across different languages"

Fixed Sliding Window: Rethinking the Pattern

A clean, reusable approach to sliding window problems — starting at the first valid state, removing conditional complexity, and focusing on window validity instead of index juggling.

How to Build Tree Structures

Explore multiple techniques for converting flat or semi-structured data into trees in Python, including recursive, map-based, and bottom-up builds like Merkle trees.

Leetcode Toolbox: Surviving the Game

This section isn’t about data structures and algorithms — it’s about surviving the system. Tips and patterns to help you finish implementation before time runs out, even when your engineering instincts are working against you.

Many Processes, Many Interpreters

Why VS Code and modern Python tooling often show multiple Python versions simultaneously, and how different subsystems each run their own interpreter.

Mastering Pandas .loc

A complete guide to label-based selection and assignment in pandas, with real-world recipes.

Matrix Toolbox

Handy Python snippets and patterns for working with 2D grids and matrices: initialization, bounds checking, neighbor offsets, and n-distance neighbors.

My Thoughts

Explore personal reflections on Python, highlighting preferences for array slicing and Django, alongside challenges with whitespace and installation confusion.

When to Return a Tuple in Python

When to use tuples vs lists in Python return values. Covers immutability, multi-value returns, tuple semantics, and clean API design patterns.