Hi Vilhelm, This is what exactly what I am looking for. Thank you so much.
Regards, Prabeesh K. On 24 May 2017 at 17:26, Vilhelm von Ehrenheim <vonehrenh...@gmail.com> wrote: > 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? >> > >