Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.

#326 Let's Go for a PyGWalk

March 08, 2023 00:33:26 32.4 MB Downloads: 0
Watch on YouTube

About the show

Sponsored by Microsoft for Startups Founders Hub.

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am PT. Older video versions available there too.

Brian #1: Data Classification : Does Python still have a need for class without @dataclass?

  • Glyph
  • dataclasses have been in the the language since 3.7
    • That’s pretty much all modern Python, right?
  • “…, is there any point to having non-@dataclass classes any more? Is there any remaining justification for writing them in new code?”
  • Options:
    • class just becomes a dataclass if you have typehinted members in it.
    • data instead of class, to avoid decorators

Michael #2: PyGWalker

  • Turn your pandas dataframe into a Tableau-style User Interface for visual analysis.
  • Works with pandas and polars
  • Open-source alternative to Tableau
  • It allows data scientists to analyze data and visualize patterns with simple drag-and-drop operations.

Brian #3: An opinionated Python boilerplate

  • Duarte O.Carmo
  • Tools and processes for new projects
  • pip-tools - Pip-tools strikes the right balance between simplicity, effectiveness, and speed.
    • especially for generating pinned requirements.txt files, if necessary
  • pyproject.toml - for configuration. packaging, but also any tool that supports it.
  • ruff
  • black, isort
  • no pre-commit hooks, just run it in CI

Michael #4: Front Matter VS Code

  • via Mark Little
  • If you have content that supports frontmatter and is markdown-based, check this out.
  • Stay in your editor and easily create, manage, and publish content.
  • Don’t make front matter mistakes
    • When was it published? What is the timezone text formatting again?
  • Learn new features of your existing static site (e.g. article image)
  • Manage images and more.

Extras

Brian:

Michael:

Joke: