Python Data Tools, Virtual Environments, and PyProjects
Pandas Data Exploration
Side Table
• Side table is a fantastic new tool by Chris Moffitt that enhances Pandas data frame exploration.
• It generates styled, readable tables with alternating row colors.
• It simplifies complex operations like data frequency analysis and grouping data into an 'other' category.
Tabulate for Command Line
• Tabulate is ideal for pretty-printing tabular data in CLI applications.
• It supports multiple formats, including GitHub-flavored Markdown, Jira style, and HTML.
• It excels at formatting and aligning numerical data, including scientific notation, automatically.
Tooling and Infrastructure
Treebeard for Notebooks
• Treebeard provides continuous integration for Jupyter notebooks.
• It ensures that notebooks are Binder-ready and automatically installs dependencies to run them.
• It functions as a 'smoke test' by running all cells and confirming they execute without exceptions, with potential for advanced assertions.
Virtual Environments
• Improvements in Python 3.9 include the --upgrade-deps flag for venv, which updates pip and setuptools automatically.
• The virtualenv package is introducing periodic updates to ensure cached dependencies stay current.
• Discussion on PEP 582 points towards a potential shift to implicit local package directories (like Node.js node_modules), potentially eliminating the need for manual environment activation.
Awesome PyProject.toml
• A curated list highlighting projects that adopt pyproject.toml for configuration.
• This resource is excellent for developers looking to migrate to standard configuration practices.
Developer Community
• The hosts discuss resources to support the Python ecosystem, including Patreon, courses at Talk Python Training, and educational books.
"Nobody wants to go back and scan a 30-minute video for that 30-second clip you're looking for."
Closing Logic
"Stop by the market and buy one bottle of milk. If they have eggs, bring six."
• This joke emphasizes the importance of clear logic in both programming and real-life instructions.