Understand the core data container, its types, and state representations.
import apache_beam as beam
# PCollections are generated as outputs of reads or transforms
inputs = p | "Create Elements" >> beam.Create([1, 2, 3, 4])
# PCollections are immutable; each transform yields a new instance
evens = inputs | "Filter Evens" >> beam.Filter(lambda x: x % 2 == 0)