Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exporting to Excel
#2
This is a shot from the hip but mabye something in this direction?

Before you react to my shitty coding, this code would most likely work if inserted "as is", im tired af atm (friday). This is more of a suggestion of how one could go about it.
And this might also be pure nonsense.... super tired :P

if "rd" in list[1][:2]: 
# list[1] is ment to be the part with endpoint. in my head it makes sense at this moment, when im not as tired, its likely that im way off
	endpoint = list[1].split('-')
	endpoint_1 = str(endpoint[0]) + str(endpoint[1]) + str(endpoint[2]) + str(endpoint[4])
	endpoint_2 = str(endpoint[0]) + str(endpoint[1]) + str(endpoint[3]) + str(endpoint[4])
	
	list_1 = list
	list_2 = list
	
	list_1[1] = endpoint_1
	list_2[1] = endpoint_2
Again, if its rubbish or simply stupid, please disregard this reply :).

Have a nice weekend!
Reply


Messages In This Thread
Exporting to Excel - by Nirmal - Jul-26-2019, 05:00 PM
RE: Exporting to Excel - by Nuzvee - Aug-02-2019, 02:41 PM
RE: Exporting to Excel - by Nirmal - Aug-08-2019, 09:24 AM
RE: Exporting to Excel - by Nuzvee - Aug-08-2019, 10:30 AM
RE: Exporting to Excel - by Nirmal - Aug-08-2019, 10:38 AM
RE: Exporting to Excel - by Nirmal - Aug-08-2019, 12:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exporting Stock Fundamental Data to a CSV file with yahoo_fin DustinKlent 2 4,732 Aug-01-2022, 06:08 PM
Last Post: paulyan
  Exporting dataframes to excel without loosing datetime format Rafa 0 1,238 Oct-27-2021, 10:42 AM
Last Post: Rafa
  Exporting a huge dataFrame stylingpat 5 15,643 Mar-23-2021, 12:13 AM
Last Post: stylingpat
  exporting all lines YazeedbnMohmmed 2 2,130 Feb-24-2021, 03:29 AM
Last Post: YazeedbnMohmmed
  Python code for exporting table using Selenium gj31980 4 3,009 Aug-04-2020, 01:29 AM
Last Post: gj31980
  Exporting data from python into excel Zankawah 5 3,406 Jun-02-2020, 03:17 AM
Last Post: buran
  Exporting list with dictionary to Excel veromi22 0 3,050 Oct-15-2019, 12:54 AM
Last Post: veromi22
  Exporting Python Output to Notepad Nirmal 4 3,585 Sep-02-2018, 02:36 PM
Last Post: Nirmal
  Exporting Json events to a text file uklipse 3 2,676 Aug-21-2018, 02:12 PM
Last Post: buran

Forum Jump:

User Panel Messages

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