You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using your package to try to write something that calls rust code through python. It will be used to convert Python's pandas into a list and then save it as excel. Because pandas excel is too slow.
However, problems were encountered at the beginning,
I created a set of data (data<Vec<Vec<String>>>), like excel's rows,but I don't how to convert Vec to row! macro
fn build_data()->Vec<Vec<String>>{
let s = "".to_string()
+ "a1,b2,c3,d4,e5\n"
+ "11,12,13,14,15\n"
+ "21,22,23,24,25\n"
+ "31,32,33,34,35";
let s_v:Vec<String> = s.split('\n').map(|x| x.to_string()).collect();
let mut v:Vec<Vec<String>> = Vec::new();
for s1 in s_v{
let s1:Vec<String> = s1.split(',').map(|x| x.to_string()).collect();
v.push(s1);
}
v
}
The text was updated successfully, but these errors were encountered:
Hello, I'm using your package to try to write something that calls rust code through python. It will be used to convert Python's pandas into a list and then save it as excel. Because pandas excel is too slow.
However, problems were encountered at the beginning,
I created a set of data (
data<Vec<Vec<String>>>
), like excel's rows,but I don't how to convert Vec to row! macrodata:
[ [ "a1", "b2", "c3", "d4", "e5", ], [ "11", "12", "13", "14", "15", ], [ "21", "22", "23", "24", "25", ], [ "31", "32", "33", "34", "35", ], ]
function is
The text was updated successfully, but these errors were encountered: