Giter Site home page Giter Site logo

Comments (8)

pjebs avatar pjebs commented on August 11, 2024

what does your json file look like?

from dataframe-go.

pjebs avatar pjebs commented on August 11, 2024

what is the error message? You are _ the error message.

from dataframe-go.

hamiwa avatar hamiwa commented on August 11, 2024

Hi,
Please see JSON file content and error msg below:

JSON

[
{
"device":"A",
"vendor":"A",
"nos":"",
"address":"A"
},
{
"device":"B",
"vendor":"B",
"nos":"B",
"address":"B"
}
]
error

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x52a54f]

goroutine 1 [running]:
github.com/rocketlaunchr/dataframe-go.(*DataFrame).Table(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
C:/Users/BLADE RUNNER/go/pkg/mod/github.com/rocketlaunchr/[email protected]/dataframe_fmt.go:38 +0x4f
main.main()
C:/Projects/Go/src/projects/data1.go:19 +0x10f
exit status 2

from dataframe-go.

pjebs avatar pjebs commented on August 11, 2024

Currently it only supports jsonl format: https://jsonlines.org/

Let me adjust the code on a few days for your use case.

from dataframe-go.

pjebs avatar pjebs commented on August 11, 2024

In the mean time, remove the outer array and then make each object into a new line (no comma)

from dataframe-go.

hamiwa avatar hamiwa commented on August 11, 2024

In the mean time, remove the outer array and then make each object into a new line (no comma)

Thanks, I will attempt using the above method and see how this performs - Appreciate the time taken on this.

from dataframe-go.

pjebs avatar pjebs commented on August 11, 2024

Complete. Now it supports loading from JSON arrays, JSONL arrays and JSONL objects.
It is also faster at importing.

from dataframe-go.

hamiwa avatar hamiwa commented on August 11, 2024

from dataframe-go.

Related Issues (20)

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.