Skip to content

Commit

Permalink
only check is_numeric (not to_physical)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Sep 5, 2023
1 parent effabc4 commit c2c5a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-core/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ impl Display for DataFrame {
for (column_index, column) in table.column_iter_mut().enumerate() {
let dtype = fields[column_index].data_type();
let mut preset = str_preset.as_str();
if dtype.to_physical().is_numeric() {
if dtype.is_numeric() {
preset = num_preset.as_str();
}
match preset {
Expand Down

0 comments on commit c2c5a96

Please sign in to comment.