[pycharm] PY-38294 Scientific view(task): "View as array" functionality for tensors

GitOrigin-RevId: 2320c5904609b2357dd860786ac7b89b96b3878c
This commit is contained in:
ekaterina.itsenko
2024-04-22 23:34:18 +02:00
committed by intellij-monorepo-bot
parent b966d0247f
commit 650c59819e
7 changed files with 49 additions and 8 deletions

View File

@@ -30,10 +30,14 @@ import static com.jetbrains.python.debugger.PyDebugValueGroupsKt.*;
public class PyDebugValue extends XNamedValue {
protected static final Logger LOG = Logger.getInstance(PyDebugValue.class);
private static final String ARRAY = "Array";
private static final String DATA_FRAME = "DataFrame";
private static final String SERIES = "Series";
private static final Map<String, String> EVALUATOR_POSTFIXES = ImmutableMap.of(
"ndarray", "Array",
"ndarray", ARRAY,
"EagerTensor", ARRAY,
"ResourceVariable", ARRAY,
"Tensor", ARRAY,
DATA_FRAME, DATA_FRAME,
SERIES, SERIES,
"GeoDataFrame", DATA_FRAME,