Issue #345

Data Frames, Pipenv Myths, the Advent of Code, and More

Dec. 4, 2018

Data Frames, Pipenv Myths, the Advent of Code, and More
#345 – DECEMBER 4, 2018 VIEW IN BROWSER
The PyCoder’s Weekly Logo
What Is a Data Frame? (In Python, R, and SQL)
Great little post that introduces the concepts behind Data Frames, and then shows how they work by solving the same problem in multiple ways: without DFs, with DFs, and in plain SQL.
OILSHELL.ORG

Five Myths About Pipenv
We’ve recently seen some articles to the tune of “Pipenv makes pip and venv obsolete”—but is that really true? Chad’s article discusses five Pipenv myths that you may have encountered in one form or another. Recommended reading.
CHAD SMITH opinion

Online Machine Learning Bootcamp With Job Guarantee
Springboard’s AI/Machine Learning Career Track is a new online, self-paced bootcamp that offers personalized mentorship from machine learning experts, career coaching and a job guarantee. Get a job or get your tuition back. Applications for the first cohort close soon: don’t wait to apply.
SPRINGBOARDsponsor

Developing a Single Page App With Flask and Vue.js
A step-by-step walkthrough of how to set up a basic CRUD app with Vue and Flask. It starts with scaffolding a new Vue application, using the Vue CLI, and then move on to performing the basic CRUD operations through a back-end RESTful API powered by Python and Flask.
MICHAEL HERMAN • Shared by Ricky White

Advanced Form Rendering with Django Crispy Forms
I’m impressed by Django Crispy Forms. In this tutorial Vitor explores some of the Django Crispy Forms features to handle advanced/custom forms rendering.
VITOR FREITAS

wtfpython: Surprising Python Snippets and Lesser-Known Features
A fun project that collects tricky & counter-intuitive examples and lesser-known features in Python, attempting to discuss what exactly is happening under the hood.
GITHUB.COM/SATWIKKANSAL

Advent of Code 2018
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
ADVENTOFCODE.COM

The Best Python Books
Find the right books to help you get started with Python or take your coding to the next level with this detailed review guide put together by the Real Python tutorial team.
REAL PYTHON


Discussions


How Much Code Do You Put in One Statement?
Raymond’s recommendation: “Statements should correspond to one complete thought expressible in a single sentence in plain English.”
RAYMOND HETTINGER

When Developing, Set PYTHONWARNINGS
Many Python libraries emit warning messages when you use them incorrectly or not optimally—think deprecation warnings and things like that. You can use the PYTHONWARNINGS flag to control which warnings are shown and this discussion goes into more detail.
REDDIT

What’s the Deal With Python 3.0–3.3?
“Everywhere I look, I see requirements for Python 2.7, 3.4+.”
REDDIT


Python Jobs


Software Engineer (Munich, Germany)
STYLIGHT GMBH

Senior Software Engineer (Munich, Germany)
STYLIGHT GMBH

Lead Engineer (Munich, Germany)
STYLIGHT GMBH

Backend Software Engineer (Vancouver, BC)
GASKET GAMES CORP

Head of Engineering (Remote)
FINDKEEP.LOVE

Cybersecurity Firm Seeks Backend Lead (NY or LA)
AON CYBER SOLUTIONS

Senior Software Engineer (Los Angeles, CA)
GOODRX

Senior Developer (Chicago, IL)
PANOPTA

More Python Jobs >>>


Articles & Tutorials


Python Interview Questions (Part 1: Junior Devs)
A series of posts about the author’s own base of Python-specific interviewing questions. Of course, no list like that is going to be perfect and this got quite a bit of grief in the Hacker News comments section. I think this is still helpful if you’re prepping for a Python coding interview, so go check it out.
LUMINOUSMEN.COM

Python Sets and Set Theory
Learn about Python sets: what they are, how to create them, when to use them, built-in functions, and their relationship to set theory operations.
MICHAEL GALARNYK • Shared by Michael Galarnyk

Top 50 Matplotlib Visualizations
A compilation of 50 matplotlib plots most useful in data analysis and visualization. Useful for choosing what visualization to show for what type of problem using Python’s matplotlib and seaborn libraries.
MACHINELEARNINGPLUS.COM

Python Tricks: A Buffet of Awesome Python Features
Discover Python’s best practices with simple examples and start writing even more beautiful + Pythonic code. “Python Tricks: The Book” shows you exactly how. You’ll master intermediate and advanced-level features in Python with practical examples and a clear narrative. Get the book + video bundle 33% off →
DAN BADERsponsor

Best Practices for Using Functional Programming in Python
A short & sweet overview and some practical recommendations for applying a functional mindset to make code more predictable and easier to follow, while maintaining simplicity and keeping it Pythonic.
AMANDINE LEE

When 100% Test Coverage Just Isn’t Enough
Brian Okken interviews Mahmoud Hashemi (the author of glom) about test coverage, versioning schemes, and more.
TESTANDCODE.COM podcast

Building Serverless Python Apps Using AWS Chalice
Chalice, a Python Serverless Microframework developed by AWS, enables you to quickly spin up and deploy a working serverless app that scales up and down on its own as required using AWS Lambda.
REAL PYTHON

A Multi-Value Syntax Tree Filtering in Python
A tutorial that teaches you how to write an evaluation engine for small, dynamic filter rules like Filter({"eq": 3})(4). This post is a follow-up that expands the rules engine to accept more complex rules involving binary operators.
JULIEN DANJOU

Keeping Up With the Python Community for Fun and Profit
I’m a guest on Tobias Macey’s Podcast.__init__ this week, talking about Real Python, PyCoder’s Weekly, and how to serve the Python community with content curation. Thanks for inviting me, Tobias!
PODCASTINIT.COM podcast

AWS Lambda Now Supports Python 3.7
AMAZON.COM

You Can’t Impress Developers. So Don’t Try. (2013)
“Developers can’t impress other developers. So don’t try. Instead focus on impressing your users.”
CHRIS BAUS opinion


Projects & Code


Dataset: Databases for Lazy People
A simple abstraction layer removes most direct SQL statements without the necessity for a full ORM model—essentially, databases can be used like a JSON file or NoSQL store.
FRIEDRICH LINDENBERG

mne-python: MEG + EEG Analysis & Visualization
A package for exploring, visualizing, and analyzing human neurophysiological data such as Magnetoencephalography (MEG), Electroencephalography (EEG), sEEG, ECoG, and more.
GITHUB.COM/MNE-TOOLS

MinaOTP-Shell: TOTP Authenticator CLI
A two-factor authentication tool that runs in a terminal as a command-line tool.
GITHUB.COM/MINAOTP

The Xonsh Shell
Want some more Python in your life? Xonsh is a shell language and command prompt based on a superset of Python 3.4+ with additional shell primitives that you are used to from Bash and IPython. It works on all major systems including Linux, macOS, and Windows.
XONSH.ORG

EarSketch
A web-based application to teach coding skills through music. Interesting approach!
GATECH.EDU

manim: Animation Engine for Explanatory Math Videos
GITHUB.COM/3B1B

asciify: Convert Any Image Into ASCII Art
The main script is less than 100 lines of Python.
GITHUB.COM/RAMESHADITYA

PyObfx: Python Obfuscator & Packer
Obfuscation is the deliberate act of creating source or machine code that is difficult for humans to understand. This tool obfuscates Python code.
GITHUB.COM/PYOBFX

GeoPandas: Spatial Operations for Pandas
GeoPandas is an open source project to make working with geospatial data in Python easier. It extends the datatypes used by Pandas to allow spatial operations on geometric types.
GEOPANDAS.ORG


Events


GeoPython 2019
June 24–26 in Basel, Switzerland
GEOPYTHON.NET

PyCascades 2019
February 23–24, 2019 in Seattle, WA
PYCASCADES.COM

PyCon SK 2019
March 22–24 in Bratislava, Slovakia
PYCON.SK

Happy Pythoning!
Copyright © 2018 PyCoder’s Weekly, All rights reserved.