Python

Python programming related stuff

In the posts in this category you will find Python scripts. Python is said to be one of the easiest programming language to learn. Learning one language will also make it easier to learn another, much more advanced, one. As a Bachelor student in the cognitive science programme I got to take Python courses. However, it was not before I started my Ph.D years that I realized how much use I had because I knew some programming.

For a psychology researcher Python might be ideal since it is relatively easy to learn and there is a huge Python community to get help from. How to build experiments using free and open-source tools such as PsychoPy, OpenSesame, Expyriment, and PyEPL is, for instance, something you could find in this category.

How to Make a Column Index in Pandas Dataframe – with Examples

In this short Pandas tutorial, you will learn how to make column index in a dataframe. Standardly, when creating a dataframe, whether from a dictionary or by reading a file (e.g., reading a CSV file, or opening an Excel file) an index column is created. For this reason, we need to either set the specific

How to Make a Column Index in Pandas Dataframe – with Examples Read More »

How to Import Historical Stock Prices Into A Python Script Using the IEX Cloud API

Python is one of the world’s most popular programming languages. Specifically, Python for finance is arguably the world’s most popular language-application pair. This is because of the robust ecosystem of packages and libraries that makes it easy for developers to build robust financial applications. In this tutorial, you will learn how to import historical stock

How to Import Historical Stock Prices Into A Python Script Using the IEX Cloud API Read More »

Create a Correlation Matrix in Python with NumPy and Pandas

In this post, we will calculate a correlation matrix in Python with NumPy and Pandas. Now, there will be several Python correlation matrix examples in this tutorial. First, we will read data from a CSV file so we can simply have a look at the numpy.corrcoef and Pandas DataFrame.corr methods. Now, building a correlation table

Create a Correlation Matrix in Python with NumPy and Pandas Read More »

Scroll to Top