From SQL To Pandas 50
From SQL To Pandas 50
From SQL To Pandas 50
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
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
table/dataframe
table/dataframe