Random Forests (and Extremely) in Python with scikit-learn
In this guest post, we will learn about random and extremely random forests classification in Python.
Random Forests (and Extremely) in Python with scikit-learn 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 guest post, we will learn about random and extremely random forests classification in Python.
Random Forests (and Extremely) in Python with scikit-learn Read More »
In this post, you will learn how to rename a file, as well as multiple files, using Python. Additionally, you will learn how to replace underscores from filenames with Python.
Rename Files in Python: A Guide with Examples using os.rename() Read More »
In this python data visualization tutorial, we will learn how to save Seaborn plots as files. E.g., PNG, PDF, EPS, and TIFF.
How to Save a Seaborn Plot as a File (e.g., PNG, PDF, EPS, TIFF) Read More »
In this post, you will learn how to clean your data from duplicated rows using Pandas drop_duplicates()
Pandas drop_duplicates(): How to Drop Duplicated Rows Read More »
In this tutorial, we are going to learn how to open and read a file in Python. Furthermore, we are going to learn how to write to the file, append more data to the file, and then save it again.
How to Read a File in Python, Write to, and Append, to a File Read More »
You will learn how to use Pandas get_dummies() to create dummy variables in Python. Specifically, you will learn how to make dummy variables for variables with two and three levels.
How to use Pandas get_dummies to Create Dummy Variables in Python Read More »
Here you will learn how to use pipx to install Python packages in isolated virtual environments. Moreover, you will learn how to uninstall and upgrade packages using pipx.
Pipx: Installing, Uninstalling, & Upgrading Python Packages in Virtual Envs Read More »
Here, we will learn how to change the size of Seaborn plots. More specifically, we will learn how to change the size of scatter plots, violin plots, and FacetGrid (scatterplots). Finally, we will learn how to save these as image files.
How to Change the Size of Seaborn Plots Read More »
Here we will learn how to; 1) install Python packages using pip, conda, and Anaconda Navigator, 2) how to load these Python packages into our scripts, and 3) how to upgrade Python packages when we need to,.
Learn all About Installing & Updating Packages in Python Read More »
Here you will learn how to load .dta files in Python. That is, you will learn how to read Stata files in Python using Pyreadstat and Pandas.
Tutorial: How to Read Stata Files in Python with Pandas Read More »