Here is your original array:
x = np.array(['16.37.235.200', '17.37.235.200'])
which is displayed like this when printed:
print(x)
>>> ['16.37.235.200' '17.37.235.200']
In order to display it with comma as a delimiter and without quotes around strings we can use np.array2string
:
print(np.array2string(x, separator=',', formatter={'str_kind': lambda x: x}))
>>> [16.37.235.200,17.37.235.200]
I don't like that lambda x: x
formatter but couldn't come up with something better to remove the quotes.
You can find more here: How to pretty-printing a numpy.array without scientific notation and with given precision?