Help with basic operation

I’m assuming that aan is a Hail expression of type array<int> that refers to some field on a Table or MatrixTable. When you do expression.take, that says, “take this expression, of which there are many values (one for each row of a table, for instance), and give me the first N”. so for example:

mt.alleles.take(3)

Will give you the alleles for the first three rows:

In [3]: mt.alleles.take(3)
Out[3]: [['A', 'C'], ['A', 'T'], ['A', 'G']]

Can you provide more information about what specifically you’re trying to do? Expression.take generally isn’t a widely used feature for more than sanity checks – you probably want to be using vectorized operations like annotate_rows and similar.