Giter VIP home page Giter VIP logo

Comments (4)

playermanny2 avatar playermanny2 commented on May 31, 2024 1

@suvayu per a quick test on http://vega.github.io/voyager/

This is the behavior directly from Voyager. I'm not sure if they chose not to create fallbacks for a valid reason -- usually it's best practice to not manipulate data received in anyway.

@saulshanabrook what do you think about adding in a fallback for handling empty columns in data?

from jupyterlab_voyager.

playermanny2 avatar playermanny2 commented on May 31, 2024

@suvayu

Can you post more information about your issue, as there's some known potential issues with some .csv files, but most of the .csvs i have been trying do open properly

Firstly, can you try to open up the data.csv in test/data included within this repository

1.Steps to reproduce(including the dateset you're trying)
2.Any relevant logs from jupyterlab
3.Any relevant logs from JavaScript console

from jupyterlab_voyager.

suvayu avatar suvayu commented on May 31, 2024

@playermanny2 I digged a bit deeper, it turns out this error happens when there is an empty column name in the csv. In my case I had exported the csv from pandas with DataFrame.to_csv(..). By default (if you specify only the file name and nothing else, then header=True, index=True, index_label=None), the column name for index is empty. When I manually edit and add the index column name, the csv opens without issues.

Since this is rather common, maybe Voyager should assume a place holder like: column_n, if the column name is empty?

from jupyterlab_voyager.

playermanny2 avatar playermanny2 commented on May 31, 2024

@suvayu

Thanks for digging into this deeper --will have to take a look at this a bit deeper to see if this is a problem with voyager itself not being able to handle empty column names or our extension.

The fallback seems like it could be a viable route

from jupyterlab_voyager.

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.