Skip to content

Commit

Permalink
fix bug in arrow timestamp conversion -> divide instead of multiply
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 27, 2021
1 parent 8d65450 commit c1aed07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions polars/polars-core/src/series/from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ impl std::convert::TryFrom<(&str, Vec<ArrayRef>)> for Series {
));
};
Ok(match tu {
TimeUnit::Second => &s / 1000,
TimeUnit::Second => &s * 1000,
TimeUnit::Millisecond => s,
TimeUnit::Microsecond => &s * 1000,
TimeUnit::Nanosecond => &s * 1000000,
TimeUnit::Microsecond => &s / 1000,
TimeUnit::Nanosecond => &s / 1000000,
})
}
#[cfg(feature = "dtype-time")]
Expand Down

0 comments on commit c1aed07

Please sign in to comment.