Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Junk values
#2
You can remove junk values if you're able to define which part of the data is made of junk
>>> "This string contains junk values".replace("junk", "")
'This string contains  values'
For example 15:49:00 doesn't look like junk in your output. The much better solution is to understand why the device sends these values and if they have a meaning, but that may be unreachable?
Reply


Messages In This Thread
Junk values - by neethuvp - Jan-14-2019, 10:17 AM
RE: Junk values - by Gribouillis - Jan-14-2019, 10:45 AM
RE: Junk values - by neethuvp - Jan-14-2019, 10:50 AM
RE: Junk values - by Gribouillis - Jan-14-2019, 11:06 AM
RE: Junk values - by perfringo - Jan-14-2019, 11:12 AM
RE: Junk values - by neethuvp - Jan-14-2019, 11:22 AM
RE: Junk values - by perfringo - Jan-14-2019, 12:13 PM

Forum Jump:

User Panel Messages

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