I have read through the Beam documentation and also looked through Python documentation but haven\'t found a good explanation of the syntax being used in most of the example
Operators in Python can be overloaded. In Beam, | is a synonym for apply, which applies a PTransform to a PCollection to produce a new PCollection. >> allows you to name a step for easier display in various UIs -- the string between the | and the >> is only used for these display purposes and identifying that particular application.
See https://beam.apache.org/documentation/programming-guide/#transforms