From 61140c8b7bb093d29754ae743a77fd3823d37af0 Mon Sep 17 00:00:00 2001 From: Kartheek Date: Thu, 11 Jan 2024 21:35:50 +0530 Subject: [PATCH 1/2] update types info --- README.md | 5 ++--- notebooks/exploring_explorer.livemd | 9 ++++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fe9fe7821..baea439b1 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,8 @@ data exploration to Elixir. Explorer high-level features are: -- Simply typed series: `:binary`, `:boolean`, `:category`, `:date`, `:datetime`, - `:duration`, floats (`:f32` and `:f64`), `:integer`, `:string`, `:time`, and - `:list` +- Simply typed series: `:null`, `:binary`, `:boolean`, `:category`, `:date`, `:datetime`, + `:duration`, floats of 32 and 64 bits (`{:f, size}`), integers of 8, 16, 32 and 64 bits (`{:s, size}`, `{:u, size}`), `:string`, `:time`, `:list` and `:struct`. - A powerful but constrained and opinionated API, so you spend less time looking for the right function and more time doing data manipulation. diff --git a/notebooks/exploring_explorer.livemd b/notebooks/exploring_explorer.livemd index 6e102050f..66d0b46f6 100644 --- a/notebooks/exploring_explorer.livemd +++ b/notebooks/exploring_explorer.livemd @@ -112,17 +112,20 @@ DataFrame.to_csv(df, filename) `Explorer` supports the following `Series` `dtypes`: +* `:null` - Null * `:binary` - Binaries (sequences of bytes) * `:boolean` - Boolean * `:category` - Strings but represented internally as integers * `:date` - Date type that unwraps to `Elixir.Date` * `{:datetime, precision}` - DateTime type with millisecond/microsecond/nanosecond precision that unwraps to `Elixir.NaiveDateTime` * `{:duration, precision}` - Duration type with millisecond/microsecond/nanosecond precision that unwraps to `Explorer.Duration` -* `{:f, 32}` - 32-bit floating point number -* `:float` or `{:f, 64}` - 64-bit floating point number. -* `:integer` - 64-bit signed integer +* `{:f, size}` - a 32-bit or 64-bit floating point number +* `{:s, size}` - a 8-bit or 16-bit or 32-bit or 64-bit signed integer +* `{:u, size}` - a 8-bit or 16-bit or 32-bit or 64-bit unsigned integer * `:string` - UTF-8 encoded binary * `:time` - Time type that unwraps to `Elixir.Time` +* `:list` - a nested data type like `Elixir.List`. It is a sequence of values of same data type. +* `:struct` - a nested data type like a `Elixir.Map`, but with same keys and matching data types. `Series` can be constructed from Elixir basic types. For example: From e93d3fdeee936ec5ae5312c39bd27a1fbf7daaed Mon Sep 17 00:00:00 2001 From: Kartheek Date: Thu, 11 Jan 2024 22:30:56 +0530 Subject: [PATCH 2/2] grammar check --- notebooks/exploring_explorer.livemd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/exploring_explorer.livemd b/notebooks/exploring_explorer.livemd index 66d0b46f6..a261d9fd3 100644 --- a/notebooks/exploring_explorer.livemd +++ b/notebooks/exploring_explorer.livemd @@ -124,8 +124,8 @@ DataFrame.to_csv(df, filename) * `{:u, size}` - a 8-bit or 16-bit or 32-bit or 64-bit unsigned integer * `:string` - UTF-8 encoded binary * `:time` - Time type that unwraps to `Elixir.Time` -* `:list` - a nested data type like `Elixir.List`. It is a sequence of values of same data type. -* `:struct` - a nested data type like a `Elixir.Map`, but with same keys and matching data types. +* `:list` - a nested data type like `Elixir.List`. It is a sequence of values having the same data type. +* `:struct` - a nested data type like a `Elixir.Map`, but with the same keys and matching data types. `Series` can be constructed from Elixir basic types. For example: