# Process to removes a column from INDArray

**URL:** <https://community.konduit.ai/t/process-to-removes-a-column-from-indarray/3073>\
**Category:** ND4J\
**Created:** [February 14, 2024, 10:11pm UTC](https://community.konduit.ai/t/process-to-removes-a-column-from-indarray/3073 "2024-02-14T22:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asaksena](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@asaksena](https://community.konduit.ai/u/asaksena)\
**Post date:** [February 14, 2024, 10:11pm UTC](https://community.konduit.ai/t/process-to-removes-a-column-from-indarray/3073/1 "2024-02-14T22:11:50Z")

</div>

Hi all,  
I am looking for a performant way to remove a single column from an INDArray, which I can use in an iterative fashion.

To provide more color, I have a Java process which operates on an INDArray of several hundred thousand columns and several thousand rows. My analysis requires me to remove a single column and operate on the remaining matrix.

For example, if I have a 4 row x 3 column matrix,

- remove column 0 only - recalc,
- then remove column 1 only - recalc,
- finally remove column 2 - recalc.  
Noting that each recalc operation above was on a 4 row x 2 column matrix.

I’m currently using originalArray.get (NDArrayIndex.interval…) to determine the left and right, and hstack-ing them, but this is quite slow as the INDArray size increases.

Thank you!
