Csv

Engineering

Spark Scala - Read CSV File

CSV files refuse to die. Despite the rise of Parquet, ORC, and Avro, you’ll still encounter CSV in nearly every data engineering project. Legacy systems export it. Business users create it in Excel….

Read more →
Scala

Scala - Read CSV File

For simple CSV files without complex quoting or escaping, Scala’s standard library provides sufficient functionality. Use scala.io.Source to read files line by line and split on delimiters.

Read more →
Python

PySpark - Convert DataFrame to CSV

PySpark DataFrames are the backbone of distributed data processing, but eventually you need to export results for reporting, data sharing, or integration with systems that expect CSV format. Unlike…

Read more →
Pandas

How to Write to CSV in Pandas

Every data pipeline eventually needs to export data somewhere. CSV remains the universal interchange format—it’s human-readable, works with Excel, imports into databases, and every programming…

Read more →
Python

How to Write to CSV in Polars

Polars has rapidly become the go-to DataFrame library for Python developers who need speed. Built in Rust with a lazy evaluation engine, it consistently outperforms pandas by 10-100x on common…

Read more →
Engineering

How to Write to CSV in PySpark

CSV remains the lingua franca of data exchange. Despite its limitations—no schema enforcement, no compression by default, verbose storage—it’s universally readable. When you’re processing terabytes…

Read more →
Pandas

How to Read CSV Files in Pandas

CSV files remain the lingua franca of data exchange. Despite the rise of Parquet, JSON, and database connections, you’ll encounter CSVs constantly—from client exports to API downloads to legacy…

Read more →
Python

How to Read CSV Files in Polars

Polars has rapidly become the go-to DataFrame library for Python developers who need speed without sacrificing usability. Built in Rust with a Python API, it consistently outperforms pandas on CSV…

Read more →