Deep Learning Nerds Academy
The ultimate Learning Platform for AI, Data Science, Data Analytics and Data Engineering.

PySpark - Convert Pandas to PySpark DataFrame

PySpark - Convert Pandas to PySpark DataFrame

Introduction In this tutorial, we want to convert a Pandas DataFrame into a PySpark DataFrame with a specific schema. In order to do this, we use the the createDataFrame() function of PySpark. Import Libraries First, we import the following python modules: import pandas as pd from pyspark.sql import...

PostgreSQL - SELECT

PostgreSQL - SELECT

Introduction In this tutorial, we want to select data from a table by using a SQL Statement. In order to do this, we use the SELECT Statement. We have already created the table student with the following data: Example 1 - SELECT specific columns We want to select the columns...

PostgreSQL - DELETE

PostgreSQL - DELETE

Introduction In this tutorial, we want to delete specific rows from a table by using a SQL Statement. In order to do this, we use the DELETE Statement. We have already created the table student with the following data: Example 1 We want to delete all rows where the name...

PostgreSQL - UPDATE

PostgreSQL - UPDATE

Introduction In this tutorial, we want to update the data in a table by using a SQL Statement. In order to do this, we use the UPDATE Statement. We have already created the table student with the following data: Example 1 We want to update the student with the name...

PostgreSQL - TRUNCATE

PostgreSQL - TRUNCATE

Introduction In this tutorial, we want to delete all rows from a table by using a SQL Statement. The table itself should remain. In order to do this, we use the TRUNCATE Statement. We have already created the table student with the following data: SQL Statement Now, let's...

PostgreSQL - INSERT

PostgreSQL - INSERT

Introduction In this tutorial, we want to insert new rows into a table by using a SQL Statement. In order to do this, we use the INSERT Statement. We have already created the table student. As you can see, the table is empty. SQL Statement Now, let's insert...

PostgreSQL - ALTER TABLE

PostgreSQL - ALTER TABLE

Introduction In this tutorial, we want to modify an existing table by using a SQL Statement. In order to do this, we use the ALTER TABLE Statement. We have already created a table called student. The table has the following columns: Example 1 - ADD COLUMN We want to add...

Pandas - Sort a DataFrame

Pandas - Sort a DataFrame

Introduction In this tutorial, we want to sort a Pandas DataFrame by specific columns. In order to do this, we use the  sort_values() method of Pandas. Import Libraries First, we import the following python modules: import numpy as np import pandas as pd Create Pandas DataFrame Next, we create...

PostgreSQL - CREATE TABLE

PostgreSQL - CREATE TABLE

Introduction In this tutorial, we want to create a table by using a SQL Statement. In order to do this, we use the CREATE TABLE Statement. We have already created a server called DLNerdsServer and a database called dlnerdsacademy. Now, we want to create a table called student. SQL Statement...

You’ve successfully subscribed to Deep Learning Nerds | The ultimate Learning Platform for AI and Data Science
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.