April 2018
Beginner to intermediate
300 pages
7h 34m
English
Comma-separated values (CSV) is one of the oldest file formats, introduced long before the World Wide Web even existed. However, it is now becoming deprecated as other advanced formats such as JSON and XML are gaining popularity. As the name suggests, data values are separated by commas. The preinstalled csv package and the pandas package contain classes to read and write data in CSV format. The following CSV example defines a population table with two countries:
Country,Time,Sex,Age,ValueUnited Kingdom,1950,Male,0-4,2238.735United States of America,1950,Male,0-4,8812.309
Read now
Unlock full access