Python Forum
TypeError: '>' not supported between instances of 'numpy.str_' and 'int'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError: '>' not supported between instances of 'numpy.str_' and 'int'
#1
When I tried to run my python script, I got this error "TypeError: '>' not supported between instances of 'numpy.str_' and 'int'"

There are two input files. One of the input files has this form:

DATE_E TIME_E LAT LON K TIME_P TIME_S FILENAME
2009-11-19 21:45:04.010 34.8395 -5.5598 9 21:45:12.25 21:45:19.46 data/PM05/PM05_data.mseed

The other is in the attachment.
I think the problem is in the input files. Your suggestions ?

Attached Files

Thumbnail(s)
       
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 725 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,678 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,031 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  Error not supported between instances of str and int avensteph 3 11,017 Jul-26-2018, 12:37 PM
Last Post: avensteph

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020