w2sv / koala Goto Github PK
View Code? Open in Web Editor NEWA 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
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
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!
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
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.
.github/workflows/build.yaml
actions/checkout v4
dart-lang/setup-dart v1.4
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
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.
Hmm.
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.