Discover more from Daily Dose of Data Science
Three Lesser-known Tips For Reading a CSV File Using Pandas
Here are three extremely useful yet lesser-known tips for reading a CSV file with Pandas:
1. If you want to read only the first few rows of the file, specify the 𝐧𝐫𝐨𝐰𝐬 parameter.
2. To load a few specific columns, specify the 𝐮𝐬𝐞𝐜𝐨𝐥𝐬 parameter.
3. If you want to skip some rows while reading, pass the 𝐬𝐤𝐢𝐩𝐫𝐨𝐰𝐬 parameter.
Share this post on LinkedIn: Post Link.
Thanks for reading Daily Dose of Data Science! Subscribe for free to receive new posts and support my work.
Find the code for my tips here: GitHub.