Skip to content

Commit

Permalink
Merged PR posit-dev/positron-python#56: Env pane show dimensions for …
Browse files Browse the repository at this point in the history
…polars frame summary value

Merge pull request #56 from posit-dev/env-pane-polars-df

Env pane show dimensions for polars frame summary value
--------------------
Commit message for posit-dev/positron-python@fa1ea16:

Env pane show dimensions for polars frame summary value


Authored-by: Pete Farland <pete.farland@posit.co>
Signed-off-by: Pete Farland <pete.farland@posit.co>
  • Loading branch information
petetronic authored and wesm committed Mar 28, 2024
1 parent a4f7a96 commit 456a9f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/positron-python/pythonFiles/positron_ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ def get_child_info(self, value, child_name) -> (str, Any):
return ('unknown', [])

def get_display_value(self, value) -> str:
return type(value).__name__
type_name = type(value).__name__
shape = value.shape
return f'{type_name}: [{shape[0]} rows x {shape[1]} columns]'

def get_display_type(self, value) -> (int, int):

Expand Down

0 comments on commit 456a9f9

Please sign in to comment.