Comments (12)
It should be possible today. Maybe we just need to relax the checks. Can you give it a try please?
from explorer.
Sorry - I clicked enter to early, I was updating the query but it's not livebook - here it just sends the message - it works with the example I pasted but it can be simpler with just one column
from explorer.
Sorry, I am confused then. Can you please provide a more complete example?
from explorer.
I'm thinking that when we know that this is a categorical value then we don't need to create another column just to create the ones and zeros.
Explorer.DataFrame.pivot_wider(df, "g")
should be enough. Maybe with an option to fill empty values with zeros. I think this is a common usecase when preparing data for further processing.
from explorer.
also instead of having second column as a single value would be an option
Explorer.DataFrame.pivot_wider(df, "g", 1)
from explorer.
Let’s go in parts then. :) A PR to support categorical values is welcome. It is probably a small change and adding categories to the list of supports columns. Do you want to give it a try? :)
from explorer.
I may try, I never looked at the code but when it's elixir then I should be fine.
from explorer.
Yes, my assumption is that we only need to change the elixir bits
from explorer.
We just need to align how it should look. I think that creating additional column is not needed here. In other places we also accept either column or scalar value.
from explorer.
I probably won't do much here - when trying to run the tests it requires nightly rust and when I run it with nightly I'm getting:
RUST_BACKTRACE=1 mix test
...............thread '<unnamed>' panicked at 'panic in a function that cannot unwind', library/core/src/panicking.rs:126:5
stack backtrace:
..........................[1] 343905 segmentation fault (core dumped) RUST_BACKTRACE=1 mix test
from explorer.
@dkuku please use the nightly version from our CI, which is nightly-2023-02-14
.
from explorer.
it works with this version - thanks, I installed it with asdf.
Also I found the solution to my problem. It's the dummies
function.
from explorer.
Related Issues (20)
- Return {:error, string} instead of {:error, {:polars, string()}} HOT 3
- load_csv for a single-column csv drops the first row if nil (nit) HOT 1
- Missing Window Functions from Polars HOT 6
- AVX support HOT 1
- Support relocating columns
- Query Engine HOT 1
- Precompiled NIFs for freebsd HOT 2
- Add parse datetime from string HOT 1
- add DataFrame.frequencies/2 HOT 1
- Q: How to specify that a number is an epoch when reading a Parquet file? HOT 4
- Normalise errors to return `Exception.t()` from the backend HOT 6
- Document `:backend` and `:lazy` options for `from_*` IO functions HOT 1
- Normalize IO dataframe operations to return {:error, Exception.t}
- `mix ci` difficulties on MacOS as an Elixir beginner HOT 2
- `Explorer.Series.cut` crashes when series is a dataframe field HOT 1
- Add binding to str.slice and/or str.split and/or add trim/2 HOT 6
- `DataFrame.from_csv` incorrectly reads "NA" as `nil` HOT 2
- [Question] Linting Elixir code as an Elixir beginner HOT 1
- Pairwise operations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from explorer.