Quansight-Labs / numpy.net

A port of NumPy to .Net
BSD 3-Clause "New" or "Revised" License
128 stars 14 forks source link

np.delete should not flatten its output #19

Closed Happypig375 closed 2 years ago

Happypig375 commented 2 years ago

Compare

using NumpyDotNet;
System.Console.WriteLine(np.delete(np.array(new[,]{
    {"0", "1", "2"},
    {"1", "0", "2"},
  }), 1, 1))
STRING 
{ 0, 2, 1, 2 }
import numpy as np
print(np.delete(np.array([["0", "1", "@"], ["1", "0", "@"]]), 1, 1))
[['0' '@']
 ['1' '@']]
KevinBaselinesw commented 2 years ago

Are you hitting this string conversion issue in a real project you are doing or are you just testing it out?

Happypig375 commented 2 years ago

issue still present