Skip to content

Commit

Permalink
edit: removed unsued example
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilayat-Ali committed Nov 1, 2023
1 parent 93fa32a commit c52d9eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
9 changes: 4 additions & 5 deletions examples/csv.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
pub use fisher::prelude::*;
use fisher::series::Series;
use fisher::series::str_series::StrSeries;
use fisher::series::{str_series::StrSeries, num_series::NumSeries};

fn main() {
let s: Series = Series::Str(vec!["ali".to_owned(), "mohd".to_owned()]);
let s = s.cat(Some(" bin "));

println!("{:#?}", s);
let mut n: Series = Series::Num((0..10).into_iter().map(|x| x as f64).collect::<Vec<f64>>());
// n.add(2.0);
println!("{:#?}", n);
}
5 changes: 0 additions & 5 deletions examples/json.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/series/num_series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::collections::HashMap;
use super::Series;

pub trait NumSeries {

fn sum(&self) -> Option<f64>;
fn product(&self) -> Option<f64>;

Expand All @@ -24,7 +25,6 @@ pub trait NumSeries {
}

impl NumSeries for Series {

fn sum(&self) -> Option<f64> {
if let Series::Num(ref vec) = &self {
Some(vec.iter().sum::<f64>())
Expand Down

0 comments on commit c52d9eb

Please sign in to comment.