Whether you are an IT professional, upstart business manager, or looking for a change in profession, you’re sure to run across the need to import, manipulate, and digest data sets.
For me, data science is not a primary function of my day-to-day. So I want the most bang for my buck, the least effort for the fastest results. Using Mito, a simple and free tool, has been a game changer that helps me save time and get repeatable results.
In this article, I’ll introduce the software, what is needed to use it, and go over a simple first project.
Merging data—often referred to as a union operation—is a common task in programming. When it comes to merging dictionaries, there are multiple strategies that you can choose from.
In this article, we’ll detail three different strategies, one of which is brand new in version 3.9 and by far the easiest of the three. Each strategy has its pros and cons; by the end of this article you will be able to make an educated decision on which to use for your next project.
Our first strategy is using a method built into the dictionary class. All dictionaries have a method…
Nothing warms my heart more than string manipulation — yes, this is sarcasm. Managing strings is not glamorous, it’s not mentally rewarding, but it is a common requirement. Therefore, I do my best to find built-in tools or build reusable tools for the same task.
Removing prefixes is one such task. In this tutorial we’ll go over my old method for removing prefixes from a string and introduce a fresh, newly minted method from version 3.9 that has become my de facto strategy.
This is a common design pattern that is applicable in a variety of languages. Essentially, we first…
I rarely share my productivity hacks. Not because I’m stingy, but because everybody has their own flavor. Last time I shared an easy way to setup window snapping for vertical monitors. This time, we’re going to learn about my absolute favorite Gmail hack and probably the service’s best feature that nobody talks about.
I’m sure you’ve made your fair share of throwaway email accounts whether it’s to sign up for that website you know is going to spam you to death or because you want a second account for your favorite game. …
Parsing through data is one of life’s great joys/headaches. One of the most common requests I receive is identifying if a value — which is buried deep in a labyrinth of nested arrays/objects — is unique or a duplicate.
Well, I’m tired of reinventing the wheel over and over so I’ve developed a standard strategy that will work for a key-value pair at any depth.
Making the claim that an algorithm will work with “any data” is…
We’ll present an algorithm challenge and then provide two solutions: a runner-up and the optimal algorithm. Algorithms are written in Python.
Given two lists of integers, is there a set of numbers — one from each list — whose sum is equal to a specified value?
Here are two examples, one that would return
True and the other that would return
# Example returning True
list1 = [1,2,3,4]
list2 = [0,0,-1,4]
sumOfTwo(list1, list2, 8) # 4 + 4# Example returning False
list1 = [1,2,3,4]
list2 = [0,0,-1,4]
sumOfTwo(list1, list2, 9)
From the examples, you can see that both…
You only have one chance to make a first impression. On-boarding is absolutely critical and goes a long way in determining if your newly won customer will be around next renewal.
It’s low-hanging fruit to tell you that the customer needs to know how to use your software/product/service as quickly as possible. Every offering is different and will have a sequence that is optimal for education. That’s on you to identify and implement.
In this article, we’ll present three questions that will directly help with establishing a great working relationship with your customer beyond the table stakes of product education.
The romantic image of development and programming is filled with complex algorithms, whiteboards, and walls of code. Below the clouds though are more mundane, yet still critical tasks such as string parsing.
Finding the start of a string, specifically determining if the start of a string is an exact value, is a common occurrence.
There are multiple strategies for this problem, we’ll be going over two of them in this article.
indexOf() method is a member of the String class, returning an integer value. …
No matter what programming language you start with, you’re likely to encounter the time-honored while loop. Although while loops are actually very simple, they are often met with apprehension because they coders’ first introduction to looping.
Well, have no fear. This explanation will use normal language, pictures, and easy-to-read code examples!
Many guides are over-eager and jump right into the code, but we’re not going to make that mistake. Let’s start by discussing the purpose of a while loop and identify some code-free, real-world examples.
While loops function by repeatedly executing a set of commands — simple as that. So…
Framing a problem is the first step to solving. At first, it may appear every problem is unique, but the reality is that common patterns emerge through repetition. Identifying these patterns is critical to quickly and accurately prescribing the answer.
One such common pattern is called mutual exclusivity. You may have heard the phrase “those are not mutually exclusive”. Do you know what that actually means?
In this tutorial, we’ll define mutual exclusivity, examine a real-world example, briefly explain its roots in logic, and finally introduce how it applies to programming.
When two items are mutually exclusive, that means that…