Giter Site home page Giter Site logo

w2sv / koala Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 0.0 74 KB

A poor man's version of a pandas DataFrame for dart.

Home Page: https://pub.dev/packages/koala

License: BSD 3-Clause "New" or "Revised" License

Dart 97.85% Makefile 2.15%
dart dartlang data dataframe datamanagement datamanipulation flutter pandas-dataframe

koala's People

Contributors

renovate[bot] avatar w2sv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

koala's Issues

Working with rows

I can't iterate through rows using koala, is there any method that I don't know off? row[idx] only gives List<Object?>

I suggest implementing a row index to map of column name to value method, and using this method to iterate through the dataframe. Unless I am missing something, and there is a better way.

I can make a PR, but I think you'd probably make a better design decision than I will. I can review nonetheless!

From CSV FilePicker readStream not working anymore

I have the following that used to work:

FilePickerResult? result = await FilePicker.platform.pickFiles(
    dialogTitle: "Pick CSV files with data",
    allowedExtensions: ['csv'],
    type: FileType.custom,
    allowMultiple: true,
    withReadStream: true);

if (result != null) {
  for (PlatformFile file in result.files) {
    String fileStem = file.name.replaceAll('.csv', '');
    String augmentedFileStem = fileStem.toLowerCase().replaceAll('_', ' ');

    filenameToCsvDataframe.value[fileStem] = await DataFrame.fromCsv(rowStream: file.readStream);

Now it doesn't, the stream is empty without populating the df:

Error: Invalid argument(s): Did not receive any data; Use DataFrame.empty() to create an empty DataFrame

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/build.yaml
  • actions/checkout v4
  • dart-lang/setup-dart v1.4
pub
pubspec.yaml
  • collection ^1.16.0
  • csv ^6.0.0
  • jiffy ^6.0.0
  • coverage ^1.7.2
  • test ^1.25.2
  • dart >=2.13.0 <4.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Rename repository & package to 'koalas'

The repository & package should be renamed to 'koalas', in order for it to align with the inflection of the package name 'pandas', which the name alludes to and is modeled after.

  • Pros:
    • this OBVIOUS shortcoming would finally stop profoundly bothering me
  • Cons:
    • would require all applications using this package to migrate

Hmm.

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.