From SQL To Pandas 50

Download as pdf or txt
Download as pdf or txt
You are on page 1of 54

FROM

SQL
TO
PANDAS
Uzwal Goud Vaddeboina
INDEX

SELECT GROUP
SELECT ALL COLUMNS GROUP BY SINGLE COLUMN
SELECT SINGLE COLUMN GROUP BY MULTIPLE COLUMNS
SELECT MULTIPLE COLUMNS JOINS
WHERE INNER JOIN
EQUAL TO (=) LEFT JOIN
NOT EQUAL TO (!=) RIGHT JOIN
GREATER THAN (>) FULL JOIN
GREATER THAN EQUAL TO (>=) CROSS JOIN
LESS THAN (<) UNION & UNION ALL
LESS THAN EQUAL TO (<=) UNION BY SINGLE COLUMN
AND UNION BY ALL COLUMNS
OR UNION ALL BY SINGLE COLUMN
IN UNION ALL BY ALL COLUMNS
NOT IN INSERT
ORDER BY ADD SINGLE COLUMN
SORT BY SINGLE COLUMN ASC UPDATE
SORT BY SINGLE COLUMN DESC UPDATE SINGLE COLUMN SINGLE ROW
SORT BY MULTIPLE COLUMNS ASC UPDATE MULTIPLE COLUMNS SINGLE ROW
SORT BY MULTIPLE COLUMNS DESC UPDATE SINGLE COLUMN MULTIPLE ROWS
SORT BY ASC AND DESC UPDATE MULTIPLE COLUMNS MULTIPLE ROWS
LIMIT & OFFSET UPDATE SINGLE COLUMN ALL ROWS
TOP N ROWS UPDATE MULTIPLE COLUMNS ALL ROWS
OFFSET

Uzwal Goud Vaddeboina


INDEX

DROP
DROP SINGLE COLUMN
DROP MULTIPLE COLUMNS
RENAME
RENAME SINGLE COLUMN
RENAME MULTIPLE COLUMNS
COUNT
COUNT OF DISTINCT VALUES
COUNT OF TOTAL VALUES
COUNT OF UNIQUE VALUES
AGGREGATIONS
DESCRIPTIVE STATISTICS
DUPLICATES
DISTINCT VALUES
DROP ROW - ALL COLUMNS DUPLICATED
DROP ROW - KEY COLUMN DUPLICATED
DDL
STRUCTURE OF TABLE

Uzwal Goud Vaddeboina


SELECT ALL COLUMNS

Uzwal Goud Vaddeboina


SELECT SINGLE COLUMN

Uzwal Goud Vaddeboina


SELECT MULTIPLE COLUMNS

Uzwal Goud Vaddeboina


EQUAL TO (=)

Uzwal Goud Vaddeboina


NOT EQUAL TO (!=)

Uzwal Goud Vaddeboina


GREATER THAN (>)

Uzwal Goud Vaddeboina


GREATER THAN EQUAL TO (>=)

Uzwal Goud Vaddeboina


LESS THAN (<)

Uzwal Goud Vaddeboina


LESS THAN EQUAL TO (<=)

Uzwal Goud Vaddeboina


AND

Uzwal Goud Vaddeboina


OR

Uzwal Goud Vaddeboina


IN

Uzwal Goud Vaddeboina


NOT IN

Uzwal Goud Vaddeboina


SORT BY SINGLE COLUMN ASC

Uzwal Goud Vaddeboina


SORT BY SINGLE COLUMN DESC

Uzwal Goud Vaddeboina


SORT BY MULTIPLE COLUMNS ASC

Uzwal Goud Vaddeboina


SORT BY MULTIPLE COLUMNS DESC

Uzwal Goud Vaddeboina


SORT BY ASC AND DESC

Uzwal Goud Vaddeboina


TOP N ROWS

Uzwal Goud Vaddeboina


OFFSET

Uzwal Goud Vaddeboina


GROUP BY SINGLE COLUMN

Uzwal Goud Vaddeboina


GROUP BY MULTIPLE COLUMNS

Uzwal Goud Vaddeboina


INNER JOIN

Uzwal Goud Vaddeboina


LEFT JOIN

Uzwal Goud Vaddeboina


RIGHT JOIN

Uzwal Goud Vaddeboina


FULL JOIN

Uzwal Goud Vaddeboina


CROSS JOIN

Uzwal Goud Vaddeboina


UNION BY SINGLE COLUMN

Uzwal Goud Vaddeboina


UNION BY ALL COLUMNS

Uzwal Goud Vaddeboina


UNION ALL BY SINGLE COLUMN

Uzwal Goud Vaddeboina


UNION ALL BY ALL COLUMNS

Uzwal Goud Vaddeboina


ADD SINGLE COLUMN

Uzwal Goud Vaddeboina


UPDATE SINGLE COLUMN SINGLE ROW

Uzwal Goud Vaddeboina


UPDATE MULTIPLE COLUMNS SINGLE ROW

Uzwal Goud Vaddeboina


UPDATE SINGLE COLUMN MULTIPLE ROWS

Uzwal Goud Vaddeboina


UPDATE MULTIPLE COLUMNS MULTIPLE ROWS

Uzwal Goud Vaddeboina


UPDATE SINGLE COLUMN ALL ROWS

Uzwal Goud Vaddeboina


UPDATE MULTIPLE COLUMNS ALL ROWS

Uzwal Goud Vaddeboina


DROP SINGLE COLUMN

Uzwal Goud Vaddeboina


DROP MULTIPLE COLUMNS

Uzwal Goud Vaddeboina


RENAME SINGLE COLUMN

Uzwal Goud Vaddeboina


RENAME MULTIPLE COLUMNS

Uzwal Goud Vaddeboina


COUNT OF DISTINCT VALUES

Uzwal Goud Vaddeboina


COUNT OF TOTAL VALUES

table/dataframe

Uzwal Goud Vaddeboina


COUNT OF UNIQUE VALUES

Uzwal Goud Vaddeboina


DESCRIPTIVE STATISTICS

Uzwal Goud Vaddeboina


DISTINCT VALUES

Uzwal Goud Vaddeboina


DROP ROW - ALL COLUMNS DUPLICATED

Uzwal Goud Vaddeboina


DROP ROW - KEY COLUMN DUPLICATED

Uzwal Goud Vaddeboina


STRUCTURE OF TABLE

table/dataframe

Uzwal Goud Vaddeboina


That’s a wrap!

If you liked this content,


follow Uzwal on LinkedIn
and click the bell icon
for updates.

You might also like