Skip to content

Latest commit

 

History

History

loader-python-to-csv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Framework examples →

Python data loader to generate CSV

View live: https://observablehq.observablehq.cloud/framework-example-loader-python-to-csv/

This Observable Framework example demonstrates how to write a data loader in Python to generate a CSV file. The data loader uses scikit-learn’s LogisticRegression function to classify penguins by species, based on body mass, culmen and flipper measurements. Charts (made with Observable Plot) explore which penguins are misclassified.

The data loader lives in src/data/predictions.csv.py.