Comments (3)
I've been playing some more with this, and came up with the following, for converting a Frame, df:
Csv.fromFrame(new CsvFormat(",", header = true))(df).toString
which seems as though it ought to work. However, there's a problem with it. The initial header row is output with field names in the same order that they occur in the Frame. However, the actual data rows for some frames have their elements ordered differently to the order in which they occur in the data frame. The result is then a mismatch between the ordering of the header items and the data items, which is obviously a bad thing.
Is this a bug in the library somewhere?
from framian.
I have seen the same issue, but I could not narrow down where the bug is occurring. It's interesting because calling .toString on the Frame does not result in the same error.
from framian.
Interesting - I suspect we are using the wrong index iteration order somewhere... I'll check it out
from framian.
Related Issues (15)
- Series.firstValue .lastValue HOT 1
- Ensure consistency in use of value/cell names in method in Series. HOT 6
- Add from/to to Index and Series HOT 1
- Allow multiple Cols in Frame#sortBy
- Add joinBy method to Frame HOT 6
- Add isEmpty method to Series
- Add method to iterate over all method in a Frame
- extract case class field names to columnnames HOT 1
- Convert Frame/Seres result to JSON
- Add an introductory Read Me HOT 3
- update shapeless HOT 1
- Poor Performance on Larger CSV's HOT 1
- setting column labels to frame from unlabeled csv
- Is this project alive? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framian.