6

i wrote something like this:

import numpy as np
n=['28/08/201818:20:35PM']
n=np.array(n)
n

the gives me the output array(['28/08/201818:20:35PM'], dtype='<U20') i don't get the dtype in the output. is it the 'UNICODE' but what about '<' & '20'

Abdullah
  • 69
  • 1
  • 6
  • Together with https://stackoverflow.com/questions/46051977/what-is-the-default-dtype-for-str-like-input-in-numpy – ayhan Sep 05 '18 at 08:11
  • no that's not what i am asking. That topic shows something else.My question is about a specific dtype of python. BYW i had an answer already & i got what i asked for.Thank You. – Abdullah Sep 05 '18 at 08:16

1 Answers1

6

A 20-character (20) unicode string (U) on a little-endian architecture (<). docs

Amadan
  • 191,408
  • 23
  • 240
  • 301