The Wayback Machine - https://web.archive.org/web/20220313182635/https://github.com/topics/table
Skip to content
#

table

Here are 2,033 public repositories matching this topic...

sheetjs
dandv
dandv commented Nov 29, 2018

I'm using .sheet_to_json for easier testing (instead of comparing the ws object with an expected one). The problem is that formula cells don't show up in the JSON output. Is there a way to make that happen (other than sheet_to_formulae)? If not, an option like formulas: true for sheet_to_json would be very useful for test automation.

ViggoV
ViggoV commented Nov 21, 2019

Environment

Question

Is there any solid documentation for the renderFilteredItems() utility function exported from the select package? It is briefly mentioned under the itemListRenderer props section of the select c

danfojs
kylemcdonald
kylemcdonald commented Mar 2, 2022

I would like to convert a DataFrame to a JSON object the same way that Pandas does with to_dict().

toJSON() treats rows as elements in an array, and ignores the index labels. But to_dict() uses the index as keys.

Here is an example of what I have in mind:

function to_dict(df) {
    const rows = df.toJSON();
    const entries = df.index.map((e, i) => ({ [e]: rows[i] }));
  

Improve this page

Add a description, image, and links to the table topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the table topic, visit your repo's landing page and select "manage topics."

Learn more