Comments (3)
How about this?
In [29]: from ibis.interactive import *
In [30]: t = ibis.examples.penguins.fetch()
In [31]: t[0].concat(*(t[c].cast("string") for c in t.columns[1:]))
Out[31]:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ StringConcat() ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ string │
├──────────────────────────────────────────┤
│ AdelieTorgersen39.118.71813750male2007 │
│ AdelieTorgersen39.517.41863800female2007 │
│ AdelieTorgersen40.318.01953250female2007 │
│ AdelieTorgersen2007 │
│ AdelieTorgersen36.719.31933450female2007 │
│ AdelieTorgersen39.320.61903650male2007 │
│ AdelieTorgersen38.917.81813625female2007 │
│ AdelieTorgersen39.219.61954675male2007 │
│ AdelieTorgersen34.118.119334752007 │
│ AdelieTorgersen42.020.219042502007 │
│ … │
└──────────────────────────────────────────┘
from ibis.
in the (potential) absence of a direct way to do this in Ibis expressions, I'd recommend using table.sql()
to run the existing SQL string directly: https://ibis-project.org/how-to/extending/sql#table.sql
from ibis.
Perhaps there's room for an API to make this even more succinct?
t[0].concat(*t.exprs[1:])
The new API being the exprs
property. Very much in spitball phase.
from ibis.
Related Issues (20)
- feat(settings): generalize and extend settings passthrough dictionary
- feat: Leverage SQLGlot AST for query parsing HOT 2
- bug: EOFError when running ibis tutorial code with ClickHouse backend HOT 4
- bug: The function `parse_sql` fails when `COUNT(*)` is in the query HOT 4
- feat: Add the ability to pass regex flags HOT 2
- Config Value spark.sql.mapKeyDedupPolicy not Supported by Databricks SQL Warehouse HOT 1
- feat: profiling? HOT 2
- bug: ibis mssql backend can not create table for very simple pandas dataframe HOT 1
- bug: cannot convert mysql `datetime(6)` type to ibis datatype HOT 1
- bug: Failed to load Postgres table containing ENUM
- feat: deprecate `ibis.memtable` in favor of expanding `ibis.table` HOT 1
- refactor: remove ibis.NA HOT 4
- bug: `.collect()` handling of null values is backend-specific HOT 3
- bug: ibis-snowflake 8.0.0 insert failure HOT 2
- Impala backend how to drop memtable tmp table after `insert(data)`
- feat: `ibis.select()` HOT 6
- bug: Snowflake connection hangs indefinitely using "authenticator="externalbrowser" HOT 1
- feat: Unsuccessfully tried to mimic "unbounded" column behavior, as `pyspark` API allows HOT 3
- feat: expose `highest_precedence(*dtypes)`
- Omission of data frame origins of S and R HOT 1
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 ibis.