Sha256: 882f91a8ccf89601c1ea0abe49b3f9c8fa06f2a9c186ed02717026a9e8c6fde7
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
use magnus::Value; use polars_core::utils::try_get_supertype; use crate::dataframe::RbDataFrame; impl RbDataFrame { pub fn to_numo(&self) -> Option<Value> { let mut st = None; for s in self.df.borrow().iter() { let dt_i = s.dtype(); match st { None => st = Some(dt_i.clone()), Some(ref mut st) => { *st = try_get_supertype(st, dt_i).ok()?; } } } let _st = st?; // TODO None } }
Version data entries
5 entries across 5 versions & 1 rubygems