Teradata Package for Python Function Reference on VantageCloud Lake - alias - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.

Teradata® Package for Python Function Reference on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
20.00.00.03
Published
December 2024
ft:locale
en-US
ft:lastEdition
2024-12-19
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.geospatial.geodataframe.GeoDataFrame.alias = alias(self, alias_name)
DESCRIPTION:
    Method to create an aliased teradataml GeoDataFrame.
    Note:
        * This method is recommended to be used before performing
          self join using GeoDataFrame's join() API.
 
PARAMETERS:
    alias_name:
        Required Argument.
        Specifies the alias name to be assigned to a teradataml GeoDataFrame.
        Types: str
 
RETURNS:
    teradataml GeoDataFrame
 
EXAMPLES:
    >>> load_example_data("geodataframe", "sample_shapes")
    >>> gdf = GeoDataFrame("sample_shapes")
    >>> geo_df = gdf.select(["skey", "points", "linestrings"])
    >>> display.geometry_column_length = 100
 
    # Example 1: Create an alias of teradataml GeoDataFrame.
    >>> geo_df2 = geo_df.alias("rhs_gdf")
 
    # Print aliased GeDataFrame.
    >>> geo_df2
                                                                         points                                                                              linestrings
    skey
    1001                                                          POINT (10 20)                                                             LINESTRING (1 1,2 2,3 3,4 4)
    1007                                     MULTIPOINT (1 1,1 3,6 3,10 5,20 1)                                              MULTILINESTRING ((1 1,1 3,6 3),(10 5,20 1))
    1010  MULTIPOINT (10.345 20.32 30.6,40.234 50.23 60.24,70.234 80.56 80.234)  MULTILINESTRING ((1 3 6,3 0 6,6 0 1),(1.35 3.6456 4.5,3.6756 0.23 6.8,0.345 1.756 8.9))
    1008       MULTIPOINT (1.65 1.76,1.23 3.76,6.23 3.78,10.76 5.9,20.32 1.231)                    MULTILINESTRING ((1 3,3 0,0 1),(1.35 3.6456,3.6756 0.23,0.345 1.756))
    1003                                                  POINT (235.52 54.546)                                         LINESTRING (1.35 3.6456,3.6756 0.23,0.345 1.756)
    1002                                                            POINT (1 3)                                                                 LINESTRING (1 3,3 0,0 1)
    1004                                                       POINT (10 20 30)                                                  LINESTRING (10 20 30,40 50 60,70 80 80)
    1009                                MULTIPOINT (10 20 30,40 50 60,70 80 80)                              MULTILINESTRING ((10 20 30,40 50 60),(70 80 80,90 100 110))
    1005                                                          POINT (1 3 5)                                                           LINESTRING (1 3 6,3 0 6,6 0 1)
    1006                                           POINT (235.52 54.546 7.4564)                             LINESTRING (1.35 3.6456 4.5,3.6756 0.23 6.8,0.345 1.756 8.9)