pub struct ColumnProfile {Show 18 fields
pub name: String,
pub data_type: String,
pub nulls: u64,
pub null_rate: f64,
pub count: usize,
pub distinct: usize,
pub min: Option<String>,
pub max: Option<String>,
pub mean: Option<f64>,
pub median: Option<f64>,
pub p25: Option<f64>,
pub p75: Option<f64>,
pub distribution: Distribution,
pub present: Option<u64>,
pub absent: Option<u64>,
pub values: Option<u64>,
pub types: Option<TypeCounts>,
pub mixed: Option<bool>,
}Expand description
One column of a Profile.
Fields§
§name: StringThe column name.
data_type: StringThe inferred type’s name (integer, float, boolean, date,
timestamp, text, or null when every sampled cell is null).
nulls: u64Null cells, over every row.
null_rate: f64nulls over the row count, 0.0 for no rows.
count: usizeNon-null cells in the sample.
distinct: usizeDistinct non-null values in the sample.
min: Option<String>The smallest value in the sample (numerically for a number column).
max: Option<String>The largest value in the sample.
mean: Option<f64>The mean, for a number column.
median: Option<f64>The median, for a number column.
p25: Option<f64>The first quartile, for a number column.
p75: Option<f64>The third quartile, for a number column.
distribution: DistributionHow the sampled values are spread.
present: Option<u64>For a nested profile: the records that hold the path at least once.
absent: Option<u64>For a nested profile: the records that do not hold the path (an
explicit null is present, and counted in nulls).
values: Option<u64>For a nested profile: the values seen at the path, nulls included
(more than present inside arrays).
types: Option<TypeCounts>For a nested profile: how many of those values were each JSON type.
mixed: Option<bool>For a nested profile: whether the values were more than one JSON
type besides null.
Implementations§
Source§impl ColumnProfile
impl ColumnProfile
Sourcepub fn absent_rate(&self, rows: u64) -> Option<f64>
pub fn absent_rate(&self, rows: u64) -> Option<f64>
absent over the row count, for a nested profile.