Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert list to interger
#3
Hi Dean,
Thanks for the advice.

I changed the code:
        line = ()
        with open(data,  encoding='utf-8') as manhole_id:
            #csv_reader = reader(manhole_id)
            for line in manhole_id:
                next(manhole_id, None)
The next(manhole_id, None) is not working??
It is returning an extra line??

Thanks
Clive
Reply


Messages In This Thread
Convert list to interger - by Clives - May-06-2022, 01:45 PM
RE: Convert list to interger - by deanhystad - May-06-2022, 02:02 PM
RE: Convert list to interger - by Clives - May-06-2022, 02:33 PM
RE: Convert list to interger - by deanhystad - May-06-2022, 03:44 PM
RE: Convert list to interger - by Clives - May-09-2022, 11:22 AM
RE: Convert list to interger - by deanhystad - May-09-2022, 12:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  convert string to float in list jacklee26 6 2,218 Feb-13-2023, 01:14 AM
Last Post: jacklee26
Thumbs Up Convert an Interger into any base !? [Solved] SpongeB0B 8 1,675 Jan-16-2023, 10:24 AM
Last Post: SpongeB0B
  convert a list to links Pir8Radio 3 1,226 Nov-28-2022, 01:52 PM
Last Post: Pir8Radio
  convert this List Comprehensions to loop jacklee26 8 1,770 Oct-21-2022, 04:25 PM
Last Post: deanhystad
  Convert each element of a list to a string for processing tester_V 6 5,657 Jun-16-2021, 02:11 AM
Last Post: tester_V
  convert numbers into list lokesh 1 2,490 Jun-03-2021, 06:37 AM
Last Post: menator01
Question convert unlabeled list of tuples to json (string) masterAndreas 4 7,759 Apr-27-2021, 10:35 AM
Last Post: masterAndreas
Star Convert Bytearray into List using list() Shlok 2 4,542 Feb-18-2021, 10:44 AM
Last Post: deanhystad
  convert List with dictionaries to a single dictionary iamaghost 3 3,053 Jan-22-2021, 03:56 PM
Last Post: iamaghost
Sad Convert python list to dictionary akanowhere 6 3,668 Dec-27-2020, 09:26 PM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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