Three Easy Methods to Upgrade Pip to the Latest Version
In this tutorial, we will learn how to upgrade pip, which is a useful skill to keep our Python environment up to date!
Three Easy Methods to Upgrade Pip to the Latest Version Read More »
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.
In this tutorial, we will learn how to upgrade pip, which is a useful skill to keep our Python environment up to date!
Three Easy Methods to Upgrade Pip to the Latest Version Read More »
This short Python tutorial will teach us how to turn the code from blog posts to Jupyter notebooks. Specifically, we will learn how to convert HTML to Jupyter Notebooks (.ipynb). In this post, we will use the Python packages BeautifulSoup4, json, and urllib. We will use these packages to scrape the code from webpages, putting
Converting HTML to a Jupyter Notebook (.ipynb) Read More »
In this post we are going to learn two very easy ways to load SASdata files (.sav7bdat) into Pandas dataframes.
How to Read SAS Files in Python with Pandas Read More »
In this post you will learn all you need to know about working with iloc and loc. That is, you will learn how to select, slice, and index dataframes using integer-based and name-based indexing.
How to use iloc and loc for Indexing and Slicing Pandas Dataframes Read More »
In this post we are going to learn two very easy ways to load SPSS data files (.sav) into Pandas dataframes.
When we know how to read SPSS files using Python we will learn how to write .sav files in Python as well.
How to Read & Write SPSS Files in Python using Pandas Read More »
In this post you will learn how to carry out MANOVA in Python using the Python package Statsmodels.
MANOVA in Python Made Easy using Statsmodels Read More »
Here we learn how to do simplify our data preprocessing work using the Python package Pyjanitor. In fact, we are going to learn how to:
> Add a column to a Pandas dataframe
> Remove missing values
> Remove an empty column
> Cleaning up column names
And all of this using only a few lines of code (end of the post).
The Easiest Data Cleaning Method using Python & Pandas Read More »
Here you will learn how to conduct repeated measures Analysis of Variance (ANOVA) in R and Python. More specifically, you will learn how to use the r-package afex and the Python package pingouin to carry out ANOVA.
Repeated Measures ANOVA in R and Python using afex & pingouin Read More »
Data visualization is a big part of the process of data analysis. In this post, we will learn how to make a scatter plot using Python and the package Seaborn. In detail, we will learn how to use the Seaborn methods scatterplot, regplot, lmplot, and pairplot to create scatter plots in Python. More specifically, we
How to Make a Scatter Plot in Python using Seaborn Read More »
In this Python tutorial, we will learn how to read and write JSON files using Python. In the first part, we are going to use the Python package json to create and read a JSON file as well as write a JSON file. After that, we are going to use Pandas read_json method to load
How to Read and Write JSON Files using Python and Pandas Read More »