## How to Calculate Percentages of a Numbers List in Python?

Problem Formulation and Solution Overview In this article, you’ll learn how to calculate percentages of a numbers list (float or integer) in Python. Given: A Python list of numerical elements (float or integer), and A percentage value. Apply the percentage value to each list element and print the result to the Python shell. 15% to … Read more

## Easy Exploratory Data Analysis (EDA) in Python with Visualization

With Exploratory Data Analysis (EDA) functions in Python, it is easy to get a quick overview of a dataset. The EDA’s goal is the statistical summary and graphical visualization of a dataset. This will help to discover patterns, missing values and help to extract further information for statistical modeling.  The first step in the data … Read more

## 6 Ways to Get the Median of a Python List

Problem Formulation Given a Python list of integer or float numbers. How to calculate the median of a Python list? Formally, the median is “the value separating the higher half from the lower half of a data sample” (wiki). Note that the median is different to the mean or average as can be seen in … Read more

## How to Round a Number Down in Python?

Problem Formulation: Given a float number. How to round the float down in Python? Here are some examples of what you want to accomplish: 42.52 –> 42 21.99999 –> 22 -0.1 –> -1 -2 –> -2 Solution: If you have little time, here’s the most straightforward answer: To round a positive or negative number x … Read more

## How to Round a Number Up in Python?

Problem Formulation: Given a float number. How to round the float up in Python? Here are some examples of what you want to accomplish: 42.42 –> 43 21.00001 –> 22 -0.1 –> 0 Solution: If you have little time, here’s the most straightforward answer: To round a number up in Python, import the math library … Read more

## np.gradient() — A Simple Illustrated Guide

In Python, the numpy.gradient() function approximates the gradient of an N-dimensional array. It uses the second-order accurate central differences in the interior points and either first or second-order accurate one-sided differences at the boundaries for gradient approximation. The returned gradient hence has the same shape as the input array.  Here is the argument table of … Read more

## Check for NaN Values in Python

Overview Problem: How to check if a given value is NaN? Here’s a quick look at the solutions to follow: So, what is a NaN value? NaN is a constant value that indicates that the given value is Not a Number. It’s a floating-point value, hence cannot be converted to any other type other than … Read more

## Matlab Developer Income and Opportunity

Annual Income How much does a Matlab Developer make per year? The average annual income of a Matlab Developer is between \$61,8950 according to Glassdoor (source) and \$84,591 according to Ziprecruiter (source) with top earners (90th percentile) making \$135,000 and more. Let’s have a look at the hourly rate of Matlab Developers next! Hourly Rate … Read more

## R Developer – Income and Opportunity

Annual Income How much does an R Developer make per year? The income of an R Developer is \$130,327 per year in the US according to Ziprecruiter (source) and \$83,000 per year in the US according to PayScale. (source) The average of this reported income data is \$106,663 per year. The top 10 highest paying … Read more