Python Forum
Code taking too much time to process
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code taking too much time to process
#10
The notice to myself was to write CONSTANS in Code in upper case (PEP8). You weren't meant.

That you can't change the content in your Excel-File should be clear.
I guess its data you get from somewhere and you've no influence of the fields/naming.
This is in 99.999% the case. + missing and wrong Data + bugs in cell datatype format

If you work with openpyxl it should do automatic conversions to Python types.

But cells with explicit text format, which have strings like "false", "NONE", "none", "true" etc. are not converted into Boolean. You get this "Keywords" as str. I think this is what you want and need.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Code taking too much time to process - by ErPipex - Nov-05-2020, 06:23 PM
RE: Code taking too much time to process - by DeaD_EyE - Nov-13-2020, 02:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I make this code more efficient and process faster? steven_ximen 0 468 Dec-17-2024, 04:27 PM
Last Post: steven_ximen
  Process finished with exit code 137 (interrupted by signal 9: SIGKILL) erdemath 2 12,644 Apr-18-2022, 08:40 PM
Last Post: erdemath
  Speed up code with second process help samuelbachorik 0 1,960 Sep-04-2021, 09:31 AM
Last Post: samuelbachorik
  Assistance with running a few lines of code at an EXACT time nethatar 5 5,019 Feb-24-2021, 10:43 PM
Last Post: nilamo
  Stumped by my own code (ratio & epoch-time calculation). MvGulik 2 3,107 Dec-30-2020, 12:04 AM
Last Post: MvGulik
  What is the run time complexity of this code and please explain? samlee916 2 3,079 Nov-06-2020, 02:37 PM
Last Post: deanhystad
  process finished with exit code -1073741819 (0xC0000005) GMCobraz 8 8,048 Sep-01-2020, 08:19 AM
Last Post: GMCobraz
  The count variable is giving me a hard time in this code D4isyy 2 2,836 Aug-09-2020, 10:32 PM
Last Post: bowlofred
  Having a hard time combining two parts of code. Coozeki 6 4,629 May-10-2020, 06:50 AM
Last Post: Coozeki
  kill thread or process asap, even during time.sleep nanok66 4 4,534 Apr-29-2020, 10:13 AM
Last Post: nanok66

Forum Jump:

User Panel Messages

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