Hi! Have you tried beam.combiners.Sample.FixedSizeGlobally(n)? There is also a Sample function per Key. They are defined here: https://github.com/apache/beam/blob/v2.0.0/sdks/python/apache_beam/transforms/combiners.py#L368
Hope it helps. If not could you explain in more detail what you mean? Br, Vilhelm von Ehrenheim On Wed, May 24, 2017 at 8:37 AM, Prabeesh K. <prabsma...@gmail.com> wrote: > > How to we can take sample data in Python? >