CSV extraction

CSV extraction reads text files whose values are separated by a delimiter. You need to specify the encoding, the separator, the header row and the column types, because a CSV does not carry them. Large files are read in chunks and invalid rows must be handled.

Example

df = pd.read_csv("ventes.csv", sep=";", encoding="utf-8", dtype={"id": str})

Related concepts

The whole glossary