[Beginner] Return generic type and unwrap from abstraction

Hello, I'm middle in the process of creating some Pandas adaptation in Rust, but I have some trouble with the generic part. I want to create more dynamic vectors called Series when I can mixed types. So on it working on Series without any T. This is my code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a7d100d2c26831771ccb265f3a1d2d62
My result should be extracted Series. For now, I can have working TSeries but without dereferencing it to a concrete type. I will be glad to help or some suggestion about how to fix a generic object for this case.

let mut df = DataFrame::read_csv(format!("src/data/Startups.csv")).unwrap();
let series = df.many(vec!["Profit", "State"]);
assert_eq!(series.len(), 2);

Hi,
I'm not sure I understood, but isn't the solution around the Traits

1 Like