Re-thought

Python and Data Science Tutorials.

  • Home
  • Jupyter Notebooks
  • Pandas
  • Data Visualisation in Python
  • About
Timestripe - my new favourite productivity app

Timestripe - my new favourite productivity app

Are you looking for a productivity app that will help you manage your goals, organize your life, and build powerful habits? Look no further than Timestripe! I recently started using this app and

  • Anna Zverkova
    Anna Zverkova
2 min read
How to scrape tables from websites using Pandas read_html() function
Pandas

How to scrape tables from websites using Pandas read_html() function

If you’re a data scientist or analyst, you know how important it is to be able to extract data from websites. Fortunately, Python makes it easy to do this with the Pandas

  • Anna Zverkova
    Anna Zverkova
4 min read
Drop all duplicate rows across multiple columns in Python Pandas
Data cleaning

Drop all duplicate rows across multiple columns in Python Pandas

If you're working with data in Python Pandas, you may find yourself needing to drop duplicate rows across multiple columns. This can be a tricky task, but luckily there are a few different

  • Anna Zverkova
    Anna Zverkova
3 min read
How to create effective prompts for AI image generation
AI art

How to create effective prompts for AI image generation

This guide will give you a quick overview of prompt engineering before you waste all your free trial credits. Without further ado let's move on to the detailed guide that explains how to come up with effective prompts for text-to-image AI generation.

  • Anna Zverkova
    Anna Zverkova
15 min read
Generate Huge Datasets With Fake Data Easily and Quickly using Python and Faker
Pandas

Generate Huge Datasets With Fake Data Easily and Quickly using Python and Faker

You can make a fake data set in Python using Faker. Here is how to generate a fake dataset using Python, Pandas, CSV, and Faker.

  • Anna Zverkova
    Anna Zverkova
5 min read
How to change or update a specific cell in Python Pandas Dataframe
Pandas

How to change or update a specific cell in Python Pandas Dataframe

Accessing a single value or updating the value of single row is sometime needed in Python Pandas Dataframe when we don't want to create a new Dataframe for just updating that single cell

  • Anna Zverkova
    Anna Zverkova
5 min read
How to add a row at the top in Pandas dataframe
Pandas

How to add a row at the top in Pandas dataframe

Pandas is a great Python library for data analytics as it makes it relatively simple, but in some cases very simple data modifications that are super simple to make in Excel can be

  • Anna Zverkova
    Anna Zverkova
3 min read
Creating WordClouds in Python from a single-column in Pandas dataframe
Data Visualisation in Python

Creating WordClouds in Python from a single-column in Pandas dataframe

In this tutorial, you will learn how to create a WordCloud of your own in Python and customise it as you see fit. Specifically, we will focus on how to generate a WorldCloud

  • Anna Zverkova
    Anna Zverkova
9 min read
Python Regex examples - How to use Regex with Pandas
Regex

Python Regex examples - How to use Regex with Pandas

If you need a refresher on how Regular Expressions work, check out my RegEx guide first! This tutorial will walk you through pattern extraction from one Pandas column to another using detailed RegEx

  • Anna Zverkova
    Anna Zverkova
5 min read
Python regular expressions (RegEx) simple yet complete guide for beginners
Regex

Python regular expressions (RegEx) simple yet complete guide for beginners

In this tutorial, you will learn about regular expressions, called RegExes (RegEx) for short, and use Python's re module to work with regular expressions. RegEx is incredibly useful, and so you must get

  • Anna Zverkova
    Anna Zverkova
6 min read
8 Python Pandas Value_counts() tricks that make your work more efficient
Pandas

8 Python Pandas Value_counts() tricks that make your work more efficient

Before you start any data project, you need to take a step back and look at the dataset before doing anything with it. Exploratory Data Analysis (EDA) is just as important as any

  • Anna Zverkova
    Anna Zverkova
7 min read
Exploring Correlation in Python: Pandas, SciPy
Pandas

Exploring Correlation in Python: Pandas, SciPy

In this article, you’ll learn:What is CorrelationWhat Pearson, Spearman, and Kendall correlation coefficients areHow to use Pandas correlation functionsHow to visualize data, regression lines, and correlation matrices with Matplotlib and SeabornCorrelationCorrelation

  • Anna Zverkova
    Anna Zverkova
13 min read
How to add new columns to Pandas dataframe?
Pandas

How to add new columns to Pandas dataframe?

In this article, I will use examples to show you how to add columns to a dataframe in Pandas. There is more than one way of adding columns to a Pandas dataframe, let’

  • Anna Zverkova
    Anna Zverkova
6 min read
Delete column/row from a Pandas dataframe using .drop() method
Pandas

Delete column/row from a Pandas dataframe using .drop() method

While working with data in Pandas, you might want to drop a column(s) or some rows from a pandas dataframe. One typically deletes columns/rows, if they are not needed for further

  • Anna Zverkova
    Anna Zverkova
5 min read
How to visualize data with Matplotlib from a  Pandas Dataframe
Pandas

How to visualize data with Matplotlib from a Pandas Dataframe

Data Visualization is a big part of data analysis and data science. In a nutshell data visualization is a way to show complex data in a form that is graphical and easy to

  • Anna Zverkova
    Anna Zverkova
8 min read
The ultimate beginners guide to Group by in Python Pandas
Pandas

The ultimate beginners guide to Group by in Python Pandas

When should you use group by in general? I would say group by is a good idea any time you want to analyse some pandas series by some category.  Group by in Python

  • Anna Zverkova
    Anna Zverkova
4 min read
Guide to renaming columns with Python Pandas
Jupyter notebooks

Guide to renaming columns with Python Pandas

One of the most common actions while cleaning data or doing exploratory data analysis (EDA) is manipulating/fixing/renaming column names. So in this post, we will explore various methods of renaming columns

  • Anna Zverkova
    Anna Zverkova
2 min read
How to suppress scientific notation in Pandas
Pandas

How to suppress scientific notation in Pandas

Scientific notation isn't helpful when you are trying to make quick comparisons across your DataFrame, and when your values are not that long. However, Pandas will introduce scientific notation by default when the

  • Anna Zverkova
    Anna Zverkova
3 min read
The complete beginners guide to Pandas
Pandas

The complete beginners guide to Pandas

The Pandas library is the key library for Data Science and Analytics and a good place to start for beginners. Often called the "Excel & SQL of Python, on steroids" because of the

  • Anna Zverkova
    Anna Zverkova
10 min read
Data project #1: Stockmarket analysis
Jupyter notebooks

Data project #1: Stockmarket analysis

This tutorial will cover basic techniques for financial data analysis. Specifically, we will use the pandas library to import stock data and manipulate the data to identify an investment thesis.

  • Luka Dadiani
    Luka Dadiani
4 min read
Use Jupyter notebooks anywhere
Jupyter notebooks

Use Jupyter notebooks anywhere

Access jupyter notebooks anywhere, from any device in the cloud. In this tutorial we’ll show you how to setup jupyter notebooks on a Linode server using Ubuntu 19.04

  • Luka Dadiani
    Luka Dadiani
6 min read
Re-thought © 2023
Latest Posts Ghost