Coder Social home page Coder Social logo

microsoft / datashaper Goto Github PK

View Code? Open in Web Editor NEW
64.0 9.0 12.0 439.18 MB

Processing engine and React components for constructing configuration-based data transformation and processing pipelines.

Home Page: https://microsoft.github.io/datashaper/

License: MIT License

JavaScript 0.34% TypeScript 64.56% EJS 0.02% Python 9.51% Jupyter Notebook 25.57%

datashaper's Issues

Add `antijoin` verb

This may be possible with other verb combinations, but an antijoin operation is useful in some data manipulation situations.

Join T1 to T2 on KEY, deleting entries in T1 that had join values.

Binarize->Bin Steps Result in Inf. Render Loop

With the sample datasets (in react/tests/public/*.csv):

  • Select the stocks table
  • Binarize a numeric column
  • Select the "Bin" operation on that numeric column
  • Observe render errors in console

Allow verbs to define their own input invariants

Currently, if a verb does not receive a default input, the workflow engine will throw an error. This works most of the time, but in some cases it may be preferable to allow verbs to declare their own named input invariants.

Update workflow runner to execute verbs concurrently

When the steps are topologically sorted, some verbs may end up being runnable at the same time. We will need to update our status-updating callbacks to account for multiple inflight steps executing at once.

Workflow `output` specification

Workflows should specify named outputs that can be referenced downstream. These outputs should have a name, and a specification on which nodes they are derived from:

e.g.

{
  "output": {
     "nodes": { "source": "graph-node", "output': "nodes" },
     "edges": { "source": "graph-node", "output": "edges" } 
}

No matching export in @data-wrangling-components/core for import "ParseType"

After upgrading to @data-wrangling-components/core 4.2.1 and @data-wrangling-components/react 3.0.0 I get the following error during build and bundling

 YN0000: [webapp]: ✘ [ERROR] No matching export in "../../node_modules/@data-wrangling-components/core/dist/index.js" for import "ParseType"
➤ YN0000: [webapp]:
➤ YN0000: [webapp]:     ../../node_modules/@data-wrangling-components/react/dist/verbs/Convert/Convert.js:2:9:
➤ YN0000: [webapp]:       2 │ import { ParseType } from '@data-wrangling-components/core';
➤ YN0000: [webapp]:         ╵          ~~~~~~~~~
➤ YN0000: [webapp]:
➤ YN0000: [webapp]: ✘ [ERROR] No matching export in "../../node_modules/@data-wrangling-components/core/dist/index.js" for import "ParseType"
➤ YN0000: [webapp]:
➤ YN0000: [webapp]:     ../../node_modules/@data-wrangling-components/react/dist/verbs/Convert/ConvertDescription.js:2:9:
➤ YN0000: [webapp]:       2 │ import { ParseType } from '@data-wrangling-components/core';
➤ YN0000: [webapp]:         ╵          ~~~~~~~~~

I think the latest version of @dwc/react in npm is depending on features of @dwc/core that have not made it to npm yet.

It appears ParseType is in the latest API of @dwc/core in https://github.com/microsoft/data-wrangling-components/blob/main/javascript/core/docs/core.api.md but ParseType is not present in the released npm module (https://cdn.jsdelivr.net/npm/@data-wrangling-components/[email protected]/dist/types/enums.d.ts).

Handle conditional steps on step inputs.

Steps have if-conditionals. When conditional steps are used as inputs to other steps, and are disabled, we should either do one of the following:

  • Use a null table
  • Augment the input schema with a conditional "if" field.

add `pin` option to verbs

In order to enable debugging and complex output scenarios, we can include a pin verb configuration that will flush the verb parquet to disk

e.g.

{
  "verb": "binarize",
  "args": {...},
  "pin": {
     "enabled": true,
     "name": "binarized-data-table",
     "format": "parquet"
  }

@data-wrangling-components/react missing dependency @essex/themed-components

After upgrading to the latest version of @data-wrangling-components/react, ^3.0.0, I get the following error when running yarn install.

YN0000: [webapp]: ✘ [ERROR] Could not resolve "@essex/themed-components"
➤ YN0000: [webapp]:
➤ YN0000: [webapp]:     ../../node_modules/@data-wrangling-components/react/dist/Steps/ManageSteps/ManageSteps.js:2:30:
➤ YN0000: [webapp]:       2 │ import { DialogConfirm } from '@essex/themed-components';
➤ YN0000: [webapp]:         ╵                               ~~~~~~~~~~~~~~~~~~~~~~~~~~

I believe this is because @essex/themed-components is listed as a devDependency but used as an actual runtime dependency.

Add `get_required_table` method to VerbInput

It's a bit onerous as a client to acquire a required named input. e.g.

 named_inputs = input.named
    if named_inputs is None:
        raise ValueError(_NAMED_INPUTS_REQUIRED)
    nodes = named_inputs.get("nodes")
    if nodes is None:
        raise ValueError(_NODES_INPUT_REQUIRED)

We can streamline this in datashaper as:

nodes = input.get_required_table("nodes") # throws if not present or configured
# or
nodes = input.get_table("nodes", required=True)

@datashaper/utilities - FileWithPath doesn't use path

new FileWithPath(content, filename, path) will only save files into a path if the path is expressed in filename. However, the path argument is required. We should either respect the path argument or specify that the filename is fully qualified.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.