mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Add transpose method to Frame for matrix transposition
This commit is contained in:
parent
9daf583a4d
commit
30bff6ecf4
@ -471,6 +471,10 @@ impl<T: Clone + PartialEq> Frame<T> {
|
|||||||
deleted_data
|
deleted_data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn transpose(&mut self) -> Matrix<T> {
|
||||||
|
self.matrix.transpose()
|
||||||
|
}
|
||||||
|
|
||||||
/// Sorts columns alphabetically by name, preserving data associations.
|
/// Sorts columns alphabetically by name, preserving data associations.
|
||||||
pub fn sort_columns(&mut self) {
|
pub fn sort_columns(&mut self) {
|
||||||
let n = self.column_names.len();
|
let n = self.column_names.len();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user