Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to load all pages of the pdf file to the program
Post: RE: How to load all pages of the pdf file to the p...
You can try using https://pypi.org/project/camelot-py/ |
|
buran |
General Coding Help |
8 |
267 |
Jul-01-2022, 07:06 AM |
|
|
Thread: cannot get code to work
Post: RE: cannot get code to work
(Jun-30-2022, 06:00 PM)Led_Zeppelin Wrote: I have not tried range(54). I will now, but as I said 53 worked.Sorry, it was typo, as I was replying on the phone. I fixed it. The point is -> 52 colum... |
|
buran |
General Coding Help |
10 |
213 |
Jun-30-2022, 06:12 PM |
|
|
Thread: cannot get code to work
Post: RE: cannot get code to work
your columns list is from 00 to 51, that means range(52). Note that the shape of values is (220320, 53) so I guess you actually need range(53)
also, your code with error has list with 52 sensors, but... |
|
buran |
General Coding Help |
10 |
213 |
Jun-30-2022, 03:16 PM |
|
|
Thread: cannot get code to work
Post: RE: cannot get code to work
try to delete anything between \ and first char on next line, maybe some ghost non-printable char? i.e. join the two lines, then add new line char againAnd even better, just dynamically create the co... |
|
buran |
General Coding Help |
10 |
213 |
Jun-30-2022, 01:46 PM |
|
|
Thread: __getitem__ Error
Post: RE: __getitem__ Error
You are trying to read 2 config files, you are the one that wrote this line
config.read(['config.cfg', 'config.dev.cfg'])How shall we know why do you read these files or where they are located. Your c... |
|
buran |
General Coding Help |
5 |
246 |
Jun-15-2022, 08:21 AM |
|
|
Thread: __getitem__ Error
Post: RE: __getitem__ Error
Please, check that files 'config.cfg' and 'config.dev.cfg' are in current working directory and show/check their content
you can check which files were parsed successfully by cheeking the return value... |
|
buran |
General Coding Help |
5 |
246 |
Jun-15-2022, 07:37 AM |
|
|
Thread: Passing string functions as arguments
Post: RE: Passing string functions as arguments
def transform_nth(str_in, n, transform):
return ''.join([str_in[:n], transform(str_in[n]), str_in[n + 1:]])
name = transform_nth("dave", 2, str.upper)
print(name) |
|
buran |
General Coding Help |
3 |
221 |
Jun-15-2022, 04:49 AM |
|
|
Thread: python function help
Post: RE: python function help
(Jun-14-2022, 07:13 AM)rob101 Wrote: I'll have to think about that one.Hint: think slices |
|
buran |
Homework |
9 |
369 |
Jun-14-2022, 10:36 AM |
|
|
Thread: ESPtools... how to install?
Post: RE: ESPtools... how to install?
Do you refer to https://pypi.org/project/esptool/ ? |
|
buran |
General Coding Help |
1 |
186 |
Jun-02-2022, 07:23 PM |
|
|
Thread: Your p“Timeout !!!!” when I enter a known good IP address when running port scanner
Post: RE: Your p“Timeout !!!!” when I enter a known good...
Why didn't you share the code (minimal reproducible example)? |
|
buran |
Networking |
4 |
365 |
May-13-2022, 10:35 AM |
|
|
Thread: Converting '1a2b3c' string to Dictionary
Post: RE: Converting '1a2b3c' string to Dictionary
from more_itertools import chunked, sliced
spam = '1a2b3c4d'
# without using more_itertools
print(dict(zip(spam[::2], spam[1::2])))
# using more_itertools
print(dict(chunked(spam, 2)))
print(dict(... |
|
buran |
General Coding Help |
6 |
479 |
May-13-2022, 05:56 AM |
|
|
Thread: TypeError: 'dict_items' object does not support indexingw
Post: RE: TypeError: 'dict_items' object does not suppor...
check https://stackoverflow.com/a/52900459/4046632 |
|
buran |
News and Discussions |
3 |
794 |
May-04-2022, 06:52 PM |
|
|
Thread: no tuple.copy()
Post: RE: no tuple.copy()
(May-04-2022, 05:31 AM)ndc85430 Wrote: Immutability is the reason for having a copy in the first place. How else are you going to produce an updated version?Creating a copy of immutable object will ... |
|
buran |
News and Discussions |
4 |
435 |
May-04-2022, 08:29 AM |
|
|
Thread: no tuple.copy()
Post: RE: no tuple.copy()
it's immutable. why would you need a copy? Reference is good enough.
there is no e.g. str.copy either :-)
Note that with [:] it's the same object (same id), not a copy
Python 3.9.4 (default, Apr 9 ... |
|
buran |
News and Discussions |
4 |
435 |
May-04-2022, 04:16 AM |
|
|
Thread: Windows install does not create .exe, shortcut,etc to open
Post: RE: Windows install does not create .exe, shortcut...
From the docs, in the disadvantages:
Quote:You don’t get an exe for your application, just a start menu shortcut to launch it.
Check the Start menu for a shortcut to launch the script.
Note, that ... |
|
buran |
General Coding Help |
4 |
435 |
May-04-2022, 02:42 AM |
|
|
Thread: can you please help me with this python code
Post: RE: can you please help me with this python code
What is the goal and what problem do you have? |
|
buran |
General Coding Help |
3 |
301 |
May-01-2022, 02:46 AM |
|
|
Thread: how to add the Qcompleter into a ui-converted script?
Post: RE: how to add the Qcompleter into a ui-converted ...
(Apr-28-2022, 11:54 AM)53535 Wrote: i posted two times because i assume i posted in a wrong place, and then i looked for a sub-forum. all i see is a gui section . so i posted again, you ask me to sp... |
|
buran |
GUI |
8 |
529 |
Apr-28-2022, 12:42 PM |
|
|
Thread: Dictionary from a list failed, help needed
Post: RE: Dictionary from a list failed, help needed
Just for sake of completeness, to mention collections.defaultdict
from collections import defaultdict
mylist = ["a", "b", "c", "a", "c"]
result = defaultdict(list)
for idx, item in enumerate(mylist):... |
|
buran |
General Coding Help |
7 |
520 |
Apr-28-2022, 06:59 AM |
|
|
Thread: pip install requests doesnt work
Post: RE: pip install requests doesnt work
Also our own tutorial https://python-forum.io/thread-3258.html |
|
buran |
General Coding Help |
7 |
418 |
Apr-20-2022, 08:44 AM |
|
|
Thread: BeautifulSoup help
Post: RE: BeautifulSoup help
It looks you are dealing with JSON. Have a look at the docs or find a tutorial how to work with JSON (e.g. documentation for json module), incl. with requests (see JSON Response Content) |
|
buran |
General Coding Help |
1 |
240 |
Apr-18-2022, 08:23 AM |