dataschool.io

Learn a new pandas trick every day!

Every weekday, I share a new "pandas trick" on social media. Each trick takes only a minute to read, yet you'll learn something new that will save you time and energy in the future! Here's my latest trick: 🐼🤹‍♂️ pandas trick:Want to combine the output of an aggregation with the original DataFrame?Instead of: df.groupby('col1').col2.func()Use: df.groupby('col1').col2.transform(func)"transform" changes the output shapeSee example 👇#Python #DataScience #pandas #pandastricks pic.twitter.com/9dkcAGpTYK— Kevin...

nczonline

Securing persistent environment variables using ZEIT Now

I’m a big fan of ZEIT Now1 as an application hosting provider. The way the service abstracts all of the cloud computing details and allows teams to focus on building and deploying web applications is fantastic. That said, I had a lot of trouble setting up secure environment variables for my first application to use. I was used to other services like Netlify2 and AwS Lambda3 exposing environment variables in the web interface to allow secure transmission of important information. When ZEIT Now didn’t provide the same option in its web...