You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beam.apache.org by "Prabeesh K." <pr...@gmail.com> on 2017/05/24 06:37:58 UTC
Sample Data
How to we can take sample data in Python?
Re: Sample Data
Posted by "Prabeesh K." <pr...@gmail.com>.
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 <vo...@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. <pr...@gmail.com> wrote:
>
>>
>> How to we can take sample data in Python?
>>
>
>
Re: Sample Data
Posted by Vilhelm von Ehrenheim <vo...@gmail.com>.
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. <pr...@gmail.com> wrote:
>
> How to we can take sample data in Python?
>