Skip to content
#

table

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

sheetjs
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] }));
  
enhancement good first issue

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