Loading tutorials
DataFrame.to_csv, the most common way to save pandas results. It assumes you can create and inspect a DataFrame, run Python scripts or notebooks, and recognize the dtypes int, float, string, and datetime. Only pandas is required. No extra libraries are needed for CSV.2 min readto_csv. Here you will change what ends up in the file: the index, the header, the separator, missing values, and number and date formats.2 min readto_csv, know the options from the previous chapters (index, sep, na_rep), and have pandas installed. You will shrink CSV output with compression and control how text is turned into bytes.3 min readto_csv and know the basic dtypes (int, float, string, datetime, category). A round trip means writing a DataFrame to a file and reading it back. With CSV, the result often differs from the original.2 min readdf.to_excel, have openpyxl installed, and know how to build a DataFrame and a groupby summary.2 min readto_excel and ExcelWriter, and that you know how to install packages with pip. It covers three things: the hard limits of an .xlsx file, which library does the writing, and how to make a sheet readable.2 min readto_parquet and have pyarrow installed. Here you will see which dtypes survive a Parquet round trip and which data makes the write fail.2 min readto_parquet and that pyarrow is installed. It covers how to pick a compression codec and how to split one dataset into a directory of files by column value.2 min readread_csv with its basic arguments. You should also know that to_csv accepts mode, header, and index.3 min read