| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Select Columns |
|
|
Indexing |
| Add Column |
|
|
+ |
| Rename Column |
|
|
= (Assignment) |
| Drop Column |
|
|
del |
| Change Data Type |
|
|
Type Casting |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Drop Nulls |
|
|
is None / not |
| Fill Nulls |
|
|
Assignment |
| Drop Duplicates |
|
|
==, != |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Filter Rows |
|
|
> |
| AND/OR Conditions |
|
|
&, | |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| GroupBy + Sum |
|
|
+ |
| GroupBy + Multiple Agg |
|
|
+, / |
| Count |
|
|
Count Logic |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Inner Join |
|
|
== |
| Left Join |
|
|
== |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Sort Values |
|
|
> or < |
| Get Top N Rows |
|
|
Slicing [:] |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Describe Stats |
|
|
+, /, Aggregates |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Apply Function |
|
|
+ (Arithmetic) |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Read CSV |
|
|
File I/O |
| Write CSV |
|
|
File I/O |
| Convert to Dict |
|
|
Dict/List Logic |
| Operation | Pandas | PySpark | Python Operator |
|---|---|---|---|
| Rank / Row Number |
|
|
Comparison, Ordering |
| Rolling Average |
|
|
Aggregation + Logic |