eland icon indicating copy to clipboard operation
eland copied to clipboard

Adding new column to an Eland dataframe

Open aamirkhan34 opened this issue 4 years ago • 2 comments

This feature would add a new column to the Eland dataframe, just like Pandas item assignment. E.g. df_ed["New Column"] = np.nan

Thanks.

aamirkhan34 avatar Jun 01 '21 18:06 aamirkhan34

What is your use case for adding a constant column to an Eland dataframe?

Does pulling your data locally and doing this operation in Pandas fit your use case?

sethmlarson avatar Jun 01 '21 18:06 sethmlarson

Thanks for your prompt response, @sethmlarson . The constant was just an example. It could be any operation, value assignment, etc. Earlier, I was pulling the data locally and doing it in pandas. However, it is too slow. The computations will speed up significantly if I do it in Elasticsearch itself, with Eland.

aamirkhan34 avatar Jun 01 '21 18:06 aamirkhan34