I would like to remove the line containing "Yokohama" from the 2D array below.
I tried to delete it in np.delete, but it didn't work.
I will use it for processing about 10 million lines, so I would appreciate it if you could tell me how to be strong with the amount of data.
Thank you for your cooperation.
Based on the second code of the question in this article Selecting rows from a NumPyndarray, can you write as follows? Can you support up to 10 million lines? is unknown.
If I wanted only rows where the second value is 4, it is easy:
To sum up, it is as follows:
© 2022 OneMinuteCode. All rights reserved.