closed_rows() | Teradata Package for Python - closed_rows() - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Publication Date
March 2025
Content Type
User Guide
Publication ID
B700-4006-200K
ft:locale
en-US
ft:lastEdition
2026-08-13
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
ft:sourceId
dita
dita:id
rkb1531260709148
Product Category
Teradata Vantage

Use the closed_rows() function to retrieve closed rows from a DataFrame created on a transaction-time or bi-temporal table/view. Closed rows are defined as those where the end of the transaction-time period is less than the current time.

There are no parameters for this function.

Example setup

Load the data to run the example.

>>> load_example_data("teradataml", "Employee_address")

Create a DataFrame on 'Employee_address' table.

>>> df = DataFrame("Employee_address")

Example: Retrieve closed rows from the DataFrame

>>> df.closed_rows()
EmployeeID    EmployeeName      address                                                           validity_period
         1        John Doe  123 Main St  ('2025-03-04 15:41:44.610000+00:00', '2025-04-01 23:59:59.999999+00:00')