Skip to main content
Version: Python

size

The size method returns the current number of rows in the source table.

Syntax

source.size -> int

Parameters

This method takes no arguments.

Returns

An int value representing the current number of rows in the source table.

Example

from deephaven import time_table, new_table
from deephaven.column import string_col

t1 = new_table([string_col("Title", ["content"])])

t2 = new_table([string_col("Title2", ["content", "string", "another string"])])

print(t1.size)
print(t2.size)