Skip to content

How about JavaScript support? #15

Closed

Description

@riziles

What about something like this?

const pastum_table = {
  "col 1": [44, 4521, 1457, 1420, -26362, -17553, -28, -1216, -64, -37783],
  "col 2": [2185, 3332, 1539, 12831, 16243, 1624, 0, 0, 0, 37755],
  "col 3": [2229, 7853, 2997, 14251, -10120, -15930, -28, -1216, -64, -29]
}

Activity

  1. atsyplenkov commented on Nov 1, 2024

    @atsyplenkov
    Owner

    Challenge accepted!

  2. atsyplenkov commented on Nov 2, 2024

    @atsyplenkov
    Owner

    Hey @riziles 👋

    I have added support of the following frameworks: polars, arquero, danfo.js

    Please, let me know, what you think. Currently, it works well for me with exampe from the README:

    pure JS

    const df = {
        "IntegerID": [1, 2, 3, 4, null],
        "StringsWithMissingValues": ["Javascript", "Rust", null, "Clojure", "Basic"],
        "OnlyFloat": [1.43, 123456.78, -45.0, 123456.78, -45.65],
        "IntAndFloat": [1.0, 2.0, 3.0, 4.0, 5.5]
    };
    
    console.log(df);

    arquero

    import {table} from "arquero";
    
    const df = table({
        "IntegerID": [1, 2, 3, 4, null],
        "StringsWithMissingValues": ["Javascript", "Rust", null, "Clojure", "Basic"],
        "OnlyFloat": [1.43, 123456.78, -45.0, 123456.78, -45.65],
        "IntAndFloat": [1.0, 2.0, 3.0, 4.0, 5.5]
    });
    
    df.print();
  3. riziles commented on Nov 3, 2024

    @riziles
    Author

    @atsyplenkov , works great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions