🧪 Version 0.2.2 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for get_csv

Load a CSV file as a list of dictionaries. This is part of the reference section.

Purpose

Load a CSV file and parse it as a list where each row after the "header row" becomes a dictionary.

Snippet

Load the CSV file called example.csv.
records = sketch.get_data_layer().get_csv('example.csv')

Parameters

  • path: The location at which the CSV file can be found.

Examples

Availability

Available for all platforms. On static and app renderers, will interpret path as a local file path using the operating system's conventions by default. For web, it will interpret path as a URL by default. Filenames like "example.csv" will assume the same directory. All platforms support remote files if prefixed by "http:// or https://".

See also