DynamicFrameCollection class
A DynamicFrameCollection
is a dictionary of DynamicFrame class objects, in which the
keys are the names of the DynamicFrames
and the values are the
DynamicFrame
objects.
__init__
__init__(dynamic_frames, glue_ctx)
-
dynamic_frames
– A dictionary of DynamicFrame class objects. -
glue_ctx
– A GlueContext class object.
Keys
keys( )
– Returns a list of the keys in this collection, which
generally consists of the names of the corresponding DynamicFrame
values.
Values
values(key)
– Returns a list of the DynamicFrame
values in
this collection.
Select
select(key)
Returns the DynamicFrame
that corresponds to the specfied key (which is
generally the name of the DynamicFrame
).
-
key
– A key in theDynamicFrameCollection
, which usually represents the name of aDynamicFrame
.
Map
map(callable, transformation_ctx="")
Uses a passed-in function to create and return a new DynamicFrameCollection
based on the DynamicFrames
in this collection.
-
callable
– A function that takes aDynamicFrame
and the specified transformation context as parameters and returns aDynamicFrame
. -
transformation_ctx
– A transformation context to be used by the callable (optional).
Flatmap
flatmap(f, transformation_ctx="")
Uses a passed-in function to create and return a new DynamicFrameCollection
based on the DynamicFrames
in this collection.
-
f
– A function that takes aDynamicFrame
as a parameter and returns aDynamicFrame
orDynamicFrameCollection
. -
transformation_ctx
– A transformation context to be used by the function (optional).