Comments (1)
The with_source_column
should probably be able to take a string to name the column.
The issue I can think of in your example is if the underlying files already have a "source" column.
The name should also probably be a unix-style path from where the read is run, to deal with parquet files with the same name nested in different folders.
from polars.
Related Issues (20)
- Creating struct using 'when' HOT 2
- group_by on all columns cannot suppot tail HOT 1
- Possible memory leak on scanning csv and sinking to parquet HOT 7
- Remove `json` support in `LazyFrame.serialize`
- Regex look-ahead/behind support HOT 4
- Add `.dt.replace()` to alter date/datetime values HOT 3
- LazyFrame.head(n) raises exception when there are errors after the first n rows.
- Non-strict data frame creation
- Thousand separator automatically added to write-delta(pl.df)
- Cache Common Subgraph Evaluation in Lazy Mode HOT 1
- The output of `hive_partitioning=False` differs in `scan_ipc()` and `scan_parquet()`
- In `scan_parquet()` and `scan_ipc()` with multiple partitioning columns, `hive_schema` fails converting Float to String
- Why do the two results differ with different sort orders before group_by? HOT 8
- Join result cannot be used in `with_context` for LazyFrame HOT 1
- CSE not applied for large map in `.replace_strict()` HOT 1
- polars write_excel how to cancel drop-down list
- Parquet nested slice pushdown gives incorrect results
- pl.LazyDataFrame.slice has a buggy behaviour with non scalar columns. HOT 1
- `read_ndjson()` and `read_parquet()` behave differently when the input is a list of files with different schemas
- pl.from_numpy produces column with null dtype when input array is empty
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 polars.