Spearman Rank Correlation in Python

A prerequisite for a Pearson correlation is normal distribution and metrical data. If your data is not normally distributed or you have variables with ordinal data (like grades, or a Likert scale or a ranked variable from β€œlow” to β€œhigh”) you can still calculate a correlation with the Spearman rank correlation. This can be done … Read more

Python foreach Loop

πŸ’‘ Question: Does Python have a for each or foreach loop? If so, how does it work? If not, what is the alternative? This article will shed light on these questions. I’ll give you the summary first and dive into the details later: Python has three alternatives to the “for each” loop: A simple for … Read more

Solidity Crash Course

Step 1: Get Started In this first article in the series, we’ll start with the basics of what Solidity is, what smart contracts are, how they work, how they are implemented, and then dig right into some cool Solidity examples and details. Of course, the first question poses itself: What is Solidity? As you could … Read more

17 Ways to Read a CSV File to a Pandas DataFrame

πŸ’¬ Question: How to import a CSV file to a Pandas DataFrame in Python? This article will discuss the most interesting examples to read a CSV file to a Pandas DataFrame. If not specified otherwise, we use the following CSV file for all examples: my_file.csv: Name,Job,Age,Income Alice,Programmer,23,110000 Bob,Executive,34,90000 Carl,Sales,45,50000 Let’s get started! Example 1 – … Read more