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