[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: Rust Playground
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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.