Data Structures/Objects in Python: An Overview

As a Data Scientist at the ShapeUp Project, I’ve been working on data analysis projects at Shape Up The Vote Data Project that activate barbershops and salons as voter engagement hubs in 13 states with 5,500 participating shops by 2024. We use relational organizing principles and remote communication through text and phone banking. My role involves collecting, cleaning, and enriching data on potential participants to identify the best shops to contact. ...

February 1, 2024 · 5 min · Stann-Omar Jones

When Should You Map a Parameter to a New Variable in Python?

When writing functions in Python, you may sometimes find yourself assigning a function parameter to a new variable. While this can improve readability and functionality, it’s not always necessary. In this article, we’ll explore when and why mapping parameters to new variables makes sense—and when it doesn’t. 1. Preserving the Original Parameter (Avoiding Side Effects) Some data types in Python, like lists and dictionaries, are mutable, meaning that modifications inside a function can affect the original object. If you need to modify the data but want to avoid altering the original input, creating a new variable is a good practice. ...

January 2, 2024 · 3 min · Stann-Omar Jones

📐 Long vs. Wide Format: Which Should You Use?

Choosing between long and wide data formats can make or break your workflow—especially when it comes to analysis, visualization, or preparing reports. This guide will help you figure out the best structure for your dataset based on your goals and tools. 🧠 Start With the Right Questions Before reshaping your data, ask yourself: 1. What are you trying to do with the data? Analyze it (e.g., run time-series or trend models)? Visualize it (e.g., bar charts, line graphs)? Use it in tools like R, Python, Excel, or Tableau? 🔧 Pro tip: Tools like ggplot2 in R or pandas in Python often prefer long format. ...

May 1, 2022 · 3 min · Stann-Omar Jones