dr3s / csv-wrangler Goto Github PK
View Code? Open in Web Editor NEWwrangle csv files
License: MIT License
wrangle csv files
License: MIT License
As a developer, I would like to be able to specify data types when parsing fields, so that I can enforce the range of values on the output.
As a developer, I would like a streaming API, so that I can process large files without running out of memory.
As a developer, I would like to be able to transform an object stream, so that I can map inputs to a contract of my choice.
Ex:
Rename Order Number → OrderID and parse as Integer
As a developer, I would like to specify a regex or other pattern for a source field, so that I can validate the input data matches expectations
Ex:
Product Number [A-Z0-9]+
Year YYYY
As a developer I would like to read a CSV file as a stream of objects, so that I can manipulate the data in an incremental fashion
Input:
CSV file path
Output:
Stream of objects
As a developer, I would like to add new fields to the output with fixed values, so that I can set static content.
Ex:
Add a new column with the fixed value "kg" → Unit and parse as String
As a developer, I would like to be able to apply a function on one or more source fields, so that I can derive a new field.
Ex:
Add a new column, concatenating Year, Month, Day → OrderDate and parse as
DateTime
As a developer, I would like feedback on invalid rows, so that I can handle errors on parsing or transforming source data incrementally.
As a developer, I would like to configure the library via a YAML file, so that I can control the library parsing and transformation without writing code.
Ex:
transforms:
-
input:
-
name: 'Order Number'
pattern: d+
output:
-
name: OrderId
type: Integer
value: 'value(Order Number)'
-
input:
-
name: Year
pattern: dddd
-
name: Month
pattern: dd
-
name: Day
pattern: dd
output:
-
name: OrderDate
type: DateTime
value: 'dateTime(Year, Month, Day)'
As a developer, I would like documentation of the library, so that I can understand it's architecture and API usage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.