- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: Please state precisely what your code is meant to achieve as I've no intention of making wild guesses or wading through it to try and find out. | |
Re: Just great, the code as shown will not work as there is no reference to pd, although it isn't difficult to work out that it's pandas. I get the impression that the whole thing is over engineered, but I have no intention of discussing this any further until an entire … | |
Re: Please put the shovel down before the hole gets too big and you can't climb out :) Regular expressions are not the way to go for something that is XML based. The simplest way is to grab libraries and play with them at a Python interactive prompt. Besides python-xbrl there … | |
| |
Re: Give me some solution, of course I will. All you need do is write a sizeable cheque made payable to the Python Software Foundation. When it's been cashed I'll give you a solution. When I say sizeable I am of course referring to the numbers and words indicating ow much … | |
Re: This might have something to do with it. > Error: The output directory "C:\Python27\MyScripts\VMS\Python_Firmware_Upgrader-4_00_02\Python_Firmware_Upgrader\dist\TargetGUI" is not empty. Please remove all its contents or use the -y option (remove output directory without confirmation As an aside __init__ makes a folder into a package, a module is just one source file. | |
Re: "Order is lost again" is incorrect. You've created an empty OrderDict() called d_Dict, then reassigned the name d_Dict to an ordinary dict() created by calling zip() on your lists of keys and values. | |
Re: Note that the minute you see code like `for i in range(len(items))` in Python you should sense a code smell. | |
Re: I'm sorry that I can't answer directly so I suggest you try the main mailing list [at](https://mail.python.org/mailman/listinfo/python-list) [or](http://news.gmane.org/gmane.comp.python.general). The people there have forgotten far more than I've ever known about unicode, so I'm certain that you'll get very sound answers :) | |
Re: To me the clearest analogy is the use of yellow sticky notes so please see [this](https://mail.python.org/pipermail/tutor/2006-October/049767.html) | |
Re: There is a missing single quote around Ctrl+N on line 63. It's hard to run code with a syntax error :) | |
Re: [QUOTE=gunbuster363;1179935]The methods is so complicated. I want to check the execution time of each statement so that I can modify that part in order to increase speed. Thanks in advance, Raymond[/QUOTE] I'd start with this [url]http://docs.python.org/library/profile.html[/url] and maybe this [url]http://docs.python.org/library/dis.html[/url]. HTH. Mark Lawrence | |
Re: Can't you just do this? [code=python] for a in array: number = int(a) [/code] |