Delete Attribute with Specified Number of Zero Value

yeopputra
yeopputra New Altair Community Member
edited November 2024 in Community Q&A
Hi All

I need a guide on how to delete an attribute which have specified number of zero value. Let say I have an example set as below and I want to delete attribute that have three zero value (in this case I want to delete column A and B while retain column C)

A
0.0
B
0.01848
C
0.00308
0.0 0.0 0.0
0.00793 0.0 0.0
0.0 0.0 0.00648

Appreciate if anyone can guide me which operator that can do the job.

Thank you.
Tagged:

Best Answer

  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Answer ✓
    Hi @yeopputra,

    I have an approximative solution.
    You can find a process where the attribute(s) with strictly more than 2 "0" values are removed.
    You can adapt this process to your use case by setting the value of the macro (in the Set Macros operator).

    hope this helps,

    Regards,

    Lionel


Answers

  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Answer ✓
    Hi @yeopputra,

    I have an approximative solution.
    You can find a process where the attribute(s) with strictly more than 2 "0" values are removed.
    You can adapt this process to your use case by setting the value of the macro (in the Set Macros operator).

    hope this helps,

    Regards,

    Lionel


  • MartinLiebig
    MartinLiebig
    Altair Employee
    Hi,
    check the operator Filter examples with Missings, which is part of operator toolbox.

    BR,
    Martin
  • yeopputra
    yeopputra New Altair Community Member

    Thanks for the reply. Yes. The process works for me. Thanks again.

  • yeopputra
    yeopputra New Altair Community Member

    Thanks for the reply. I will try this step too later. Thanks.