mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 09:30:01 +00:00
Rename variable for clarity in DataFrame display formatting
This commit is contained in:
parent
fa392ec631
commit
aa15248b58
@ -706,7 +706,7 @@ impl fmt::Display for DataFrame {
|
||||
|
||||
// --- Print Header ---
|
||||
output.push_str(&format!("{:>width$} ", "Index", width = max_index_width));
|
||||
let mut displayed_cols = 0;
|
||||
let mut _displayed_cols = 0;
|
||||
let total_cols = self.cols();
|
||||
let mut cols_to_display = Vec::new();
|
||||
|
||||
@ -727,7 +727,7 @@ impl fmt::Display for DataFrame {
|
||||
output.push_str(&format!("{:>width$} ", "...", width = 5)); // Fixed width for ellipsis
|
||||
} else {
|
||||
output.push_str(&format!("{:>width$} ", col_name, width = column_widths[col_name]));
|
||||
displayed_cols += 1;
|
||||
_displayed_cols += 1;
|
||||
}
|
||||
}
|
||||
output.push('\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user