Hackers and Slackers
Hackers and Slackers Mobile

Hackers and Slackers

  • About
  • Series
  • Join
  • Donate
Sign in Subscribe
  • Python
  • Software
  • DevOps
  • Architecture
  • Data Engineering
  • Pandas
  • Data Analysis
  • Data Science
  • REST APIs
  • SQL
  • JavaScript
  • Flask
  • AWS
  • NodeJS
  • Google Cloud
  • Apache
  • MySQL
  • Frontend
  • Data Vis
  • NoSQL
  • Spark
  • Home
  • Series
    • Data Analysis with Pandas
    • Build Flask Apps
    • Learning Apache Spark
    • Google Cloud Architecture
    • Mastering SQLAlchemy
    • GraphQL Tutorials
    • Welcome to SQL
    • Working with MySQL
    • Mapping Data with Mapbox
    • Web Scraping With Python
    • Python Concurrency with Asyncio
    • Getting Started with Django
  • Series
  • Tags
    • Python
    • Software
    • DevOps
    • Data Engineering
    • Architecture
    • Pandas
    • Data Analysis
    • Data Science
    • REST APIs
    • SQL
    • JavaScript
    • Flask
    • AWS
    • NodeJS
    • Google Cloud
    • MySQL
    • Apache
  • Tags
Sign in Subscribe

Code Snippet Corner

Real-world examples of Python snippets used to solve complex data problems, primarily leveraging Pandas and related libraries.
Being REALLY Lazy With Multiple Aggregations in Pandas

Being REALLY Lazy With Multiple Aggregations in Pandas

Perform multiple aggregate functions simultaneously with Pandas 0.25
Matthew Alhonte's Avatar
Matthew Alhonte matt
Dec 9, 2019 • 3 mins
Code Snippet Corner
Splitting Columns With Pandas

Splitting Columns With Pandas

Split columns containing multiple values in your Pandas DataFrame into multiple columns, each containing a single value.
Matthew Alhonte's Avatar
Matthew Alhonte matt
Nov 19, 2019 • 7 mins
Code Snippet Corner
Recasting Low-Cardinality Columns as Categoricals

Recasting Low-Cardinality Columns as Categoricals

Downcast strings in Pandas to their proper data-types using HDF5.
Matthew Alhonte's Avatar
Matthew Alhonte matt
Jun 3, 2019 • 3 mins
Code Snippet Corner
Removing Duplicate Columns in Pandas

Removing Duplicate Columns in Pandas

Dealing with duplicate column names in your Pandas DataFrame.
Matthew Alhonte's Avatar
Matthew Alhonte matt
May 28, 2019 • 3 mins
Code Snippet Corner
Downcast Numerical Data Types with Pandas

Downcast Numerical Data Types with Pandas

Using an Example Where We Downcast Numerical Columns.
Matthew Alhonte's Avatar
Matthew Alhonte matt
Jan 28, 2019 • 5 mins
Code Snippet Corner
Using Random Forests for Feature Selection with Categorical Features

Using Random Forests for Feature Selection with Categorical Features

Python helper functions for adding feature importance, and displaying them as a single variable.
Matthew Alhonte's Avatar
Matthew Alhonte matt
Sep 24, 2018 • 2 mins
Code Snippet Corner
Tuning Random Forests Hyperparameters: min_samples_leaf

Tuning Random Forests Hyperparameters: min_samples_leaf

Tune the min_samples_leaf parameter in for a Random Forests classifier in scikit-learn in Python
Matthew Alhonte's Avatar
Matthew Alhonte matt
Sep 17, 2018 • 4 mins
Code Snippet Corner
Tuning Random Forests Hyperparameters: max_depth

Tuning Random Forests Hyperparameters: max_depth

Tune the max_depth parameter in for a Random Forests classifier in scikit-learn in Python
Matthew Alhonte's Avatar
Matthew Alhonte matt
Sep 10, 2018 • 2 mins
Code Snippet Corner
Tuning Machine Learning Hyperparameters with Binary Search

Tuning Machine Learning Hyperparameters with Binary Search

Tune the n_estimators parameter in for a Random Forests classifier in scikit-learn in Python.
Matthew Alhonte's Avatar
Matthew Alhonte matt
Sep 3, 2018 • 4 mins
Code Snippet Corner
Importing Excel Datetimes Into Pandas, Part II

Importing Excel Datetimes Into Pandas, Part II

Import dates & times from Excel .xlsx files into Pandas!
Matthew Alhonte's Avatar
Matthew Alhonte matt
Aug 20, 2018 • 2 mins
Code Snippet Corner

Tags

Python Software DevOps Architecture Data Engineering Pandas Excel Data Analysis REST APIs Data Science SQL Flask Code Snippet Corner JavaScript AWS NodeJS Google Cloud Frontend MySQL Apache Data Vis BI NoSQL Spark GraphQL ExpressJS PostgreSQL ETL Pipelines Tableau Machine Learning Big Data Powerpivot PowerBI Atlassian GatsbyJS Automation SQLAlchemy Data Warehouses Mapbox Plotly Golang JAMStack Scraping Django Concurrency ReactJS SaaS Products Hashicorp Docker Terraform Frameworks FastAPI Java Microsoft

Newsletter

Create an account to receive occasional updates and interact with the community.

Great!

Check your inbox and click the link to complete the subscription.

Error

Loading...

Series'

Data Analysis with Pandas 11
Build Flask Apps 11
Learning Apache Spark 6
Google Cloud Architecture 6
Mastering SQLAlchemy 4
GraphQL Tutorials 4
Welcome to SQL 4
Working with MySQL 4
Mapping Data with Mapbox 3
Web Scraping With Python 2
Python Concurrency with Asyncio 2
Getting Started with Django 2
Hackers and Slackers

Community of hackers obsessed with data science, data engineering, and analysis. Openly pushing a pro-robot agenda.

Pages

  • About
  • Series
  • Tags
  • Join
  • Donate
  • Sign in
  • Subscribe

Authors

  • Todd Birchard
  • Matthew Alhonte
  • Max Mileaf
  • Ryan Rosado
  • Graham Beckley
  • David Aquino
  • Paul Armstrong
  • Dylan Castillo

Series'

  • Data Analysis with Pandas
  • Build Flask Apps
  • Learning Apache Spark
  • Google Cloud Architecture
  • Mastering SQLAlchemy
  • GraphQL Tutorials
  • Welcome to SQL
  • Working with MySQL
  • Mapping Data with Mapbox
  • Web Scraping With Python
  • Python Concurrency with Asyncio
  • Getting Started with Django
©2025 Hackers and Slackers, All Rights Reserved.