It may be the era of deep learning and big data, where complex algorithms analyze images by being shown millions of them, but color spaces are still surprisingly useful for image analysis. Simple methods can still be powerful. In this article, you will learn how to simply segment an object from an image based on […]
Category: NumPy
The Best Python Books
Python is an amazing programming language. It can be applied to almost any programming task, allows for rapid development and debugging, and brings the support of what is arguably the most welcoming user community. Getting started with Python is like learning any new skill: it’s important to find a resource you connect with to guide […]
Python Pandas: Tricks & Features You May Not Know
Pandas is a foundational library for analytics, data processing, and data science. It’s a huge project with tons of optionality and depth. This tutorial will cover some lesser-used but idiomatic Pandas capabilities that lend your code better readability, versatility, and speed, à la the Buzzfeed listicle. If you feel comfortable with the core concepts of […]
Documenting Python Code: A Complete Guide
Welcome to your complete guide to documenting Python code. Whether you’re documenting a small script or a large project, whether you’re a beginner or seasoned Pythonista, this guide will cover everything you need to know. We’ve broken up this tutorial into four major sections: Why Documenting Your Code Is So Important: An introduction to documentation […]
Fast, Flexible, Easy and Intuitive: How to Speed Up Your Pandas Projects
If you work with big data sets, you probably remember the “aha” moment along your Python journey when you discovered the Pandas library. Pandas is a game-changer for data science and analytics, particularly if you came to Python because you were searching for something more powerful than Excel and VBA. So what is it about […]
Top 20 Python AI and Machine Learning Open Source Projects
Getting into Machine Learning and AI is not an easy task. Many aspiring professionals and enthusiasts find it hard to establish a proper path into the field, given the enormous amount of resources available today. The field is evolving constantly and it is crucial that we keep up with the pace of this rapid development. […]
Basic Statistics in Python: Probability
When studying statistics, you will inevitably have to learn about probability. It is easy lose yourself in the formulas and theory behind probability, but it has essential uses in both working and daily life. We’ve previously discussed some basic concepts in descriptive statistics; now we’ll explore how statistics relates to probability. Prerequisites: Similar to the […]
Generating Random Data in Python (Guide)
How random is random? This is a weird question to ask, but it is one of paramount importance in cases where information security is concerned. Whenever you’re generating random data, strings, or numbers in Python, it’s a good idea to have at least a rough idea of how that data was generated. Here, you’ll cover […]
Basic Statistics in Python: Descriptive Statistics
The field of statistics is often misunderstood, but it plays an essential role in our everyday lives. Statistics, done correctly, allows us to extract knowledge from the vague, complex, and difficult real world. Wielded incorrectly, statistics can be used to harm and mislead. A clear understanding of statistics and the meanings of various statistical measures […]
Python Histogram Plotting: NumPy, Matplotlib, Pandas & Seaborn
In this tutorial, you’ll be equipped to make production-quality, presentation-ready Python histogram plots with a range of choices and features. If you have introductory to intermediate knowledge in Python and statistics, you can use this article as a one-stop shop for building and plotting histograms in Python using libraries from its scientific stack, including NumPy, […]
The Ultimate List of Python YouTube Channels
We couldn’t find a good, up-to-date list of Python developer or Python programming YouTube channels online. Learning Python on YouTube is a viable option these days, and we’re excited about what this new medium can do for programming education. There are some really good YouTube channels that focus on Python development out there, but we […]
Generating Climate Temperature Spirals in Python
Ed Hawkins, a climate scientist, tweeted the following animated visualization in 2017 and captivated the world: This visualization shows the deviations from the average temperature between 1850 and 1900. It was reshared millions of times over Twitter and Facebook and a version of it was even shown at the opening ceremony for the Rio Olympics. […]
Pure Python vs NumPy vs TensorFlow Performance Comparison
Python has a design philosophy that stresses allowing programmers to express concepts readably and in fewer lines of code. This philosophy makes the language suitable for a diverse set of use cases: simple scripts for web, large web applications (like YouTube), scripting language for other platforms (like Blender and Autodesk’s Maya), and scientific applications in […]
Regression of a Proportion in Python
I frequently predict proportions (e.g., proportion of year during which a customer is active). This is a regression task because the dependent variables is a float, but the dependent variable is bound between the 0 and 1. Googling around, I had a hard time finding the a good way to model this situation, so I’ve […]
Pipenv: A Guide to the New Python Packaging Tool
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and the good old requirements.txt. In addition to addressing some common issues, it consolidates and simplifies the development process to a single command line tool. This guide will go over what problems Pipenv solves and […]