Skip to content
#

tensors

Here are 95 public repositories matching this topic...

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
aesara
ricardoV94
ricardoV94 commented Apr 19, 2022

We should just return x, when all the shapes passed into specify_shape are None as this won't do anything.

import aesara.tensor as at

x = at.matrix("x")
y = at.specify_shape(x, (None, None))
assert y is x

This has the potential to simplify internal code, and avoid some rewrites to remove useless specify_shapes

enhancement good first issue help wanted shape inference

Aardvark is an open-source platform for visual computing, real-time graphics and visualization. This repository is the basis for most platform libraries and provides basic functionality such as data-structures, math and much more.

  • Updated Apr 19, 2022
  • C#
heat

Improve this page

Add a description, image, and links to the tensors 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 tensors topic, visit your repo's landing page and select "manage topics."

Learn more