Python Forum
Help with to check an Input list data with a data read from an external source
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with to check an Input list data with a data read from an external source
#3
(Mar-08-2024, 10:30 AM)Pedroski55 Wrote: As I understand your request:

Quote:1. Read data from an example Excel/csv/text which you did not supply.

2. Returns True or False, so for testing, any list of True or False values would suffice to mimic your daq/Disp comparison. If this list reflects the reality on the ground there, would be better. If we had such a list, even better!

4. If the daq/Disp comparison turns out to be False, write the values from the csv we don't have to the datafame we don't have.

5. Check the whole length of the data frame we don't have.

6. After checking the whole df stop.

7. But don't stop until you have checked the df x cycles where x is a number we don't have.

How then can I try this out to see if it works or not?

Doesn't actually seem to hard, if one had some data to work with and check.


.xlsx   Sample Input File.xlsx (Size: 19.03 KB / Downloads: 29)
.csv   sample read displacement.csv (Size: 2.41 KB / Downloads: 20)

My bad I have supplied two attachments one is the input file and the other is the sample displacement being read. The max number of cycles is not fixed but for this purpose we can assume it to be let us say 3. I hope I was able to clarify.
Reply


Messages In This Thread
RE: Help with to check an Input list data with a data read from an external source - by sacharyya - Mar-08-2024, 10:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PyYAML read list of int zisco 2 432 Apr-02-2024, 12:36 PM
Last Post: zisco
  difference between forms of input a list to function akbarza 6 1,230 Feb-21-2024, 08:02 PM
Last Post: bterwijn
  [solved] list content check paul18fr 6 874 Jan-04-2024, 11:32 AM
Last Post: deanhystad
  manually input data jpatierno 0 409 Nov-10-2023, 02:32 AM
Last Post: jpatierno
  Input network device connection info from data file edroche3rd 6 1,216 Oct-12-2023, 02:18 AM
Last Post: edroche3rd
  How to read module/class from list of strings? popular_dog 1 558 Oct-04-2023, 03:08 PM
Last Post: deanhystad
Question in this code, I input Key_word, it can not find although all data was exact Help me! duchien04x4 3 1,165 Aug-31-2023, 05:36 PM
Last Post: deanhystad
  Correctly read a malformed CSV file data klllmmm 2 2,175 Jan-25-2023, 04:12 PM
Last Post: klllmmm
  user input values into list of lists tauros73 3 1,170 Dec-29-2022, 05:54 PM
Last Post: deanhystad
  Read nested data from JSON - Getting an error marlonbown 5 1,511 Nov-23-2022, 03:51 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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