00:14 pandas can deduce the compression type by itself. Here, you created a compressed CSV file as an archive. The size of the regular CSV file is 999 bytes, while the compressed file only has 730 bytes.
read_csv() decompresses the file before reading it into a
DataFrame. You can specify the type of compression with the optional parameter
compression, which can take on any of the values seen onscreen.
01:38 Note that this again corresponds to the DataFrame with the same data as before. You can give the other compression methods a try as well. If you’re using pickle files, then keep in mind that the zip format only supports reading. Next up, you’ll see how to choose columns when working with big data.
Become a Member to join the conversation.