Skip to content

Instantly share code, notes, and snippets.

View PointyFluff's full-sized avatar
🦀
Rite in the Rust

Pointy Fluff PointyFluff

🦀
Rite in the Rust
  • 1099
  • 98288
View GitHub Profile
@ChengzhiZhao
ChengzhiZhao / rust_plotters.rs
Created February 17, 2022 06:25
Rust Plotters Data Visualization
use plotters::prelude::*;
use std::error::Error;
use fast_float::parse;
fn read_csv() -> Result<(Vec<f64>,Vec<i32>), Box<dyn Error>> {
// Build the CSV reader and iterate over each record.
let mut rdr = csv::Reader::from_path("~/Downloads/kc_house_data.csv")?;
let mut price:Vec<f64> = Vec::new();
let mut sqft_living:Vec<i32> = Vec::new();