Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,584

Full Statistics

Online Users
There are currently 42 online users.
» 0 Member(s) | 39 Guest(s)
Google, Bing, AOL

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 4
» Views: 128
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
Yesterday, 03:59 PM
» Replies: 4
» Views: 139
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 84
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,550
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 235
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,058
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 471
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,106
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,184
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 862

 
  Concatenate two dictionaries
Posted by: harish - Oct-11-2019, 06:48 PM - Forum: General Coding Help - Replies (3)

HI All,
My requirement is little similar to concatenation of two dictionaries,
Source data is:
x = {'field1': 'test1', 'field2': 'test2', 'field3'..... More

Print this item

  Folium map from another website
Posted by: tantony - Oct-11-2019, 04:04 PM - Forum: General Coding Help - Replies (8)

Is there a way to import map from this website in Python using folium or other packages? If not, what would be a good way to do this?

I was writin..... More

Print this item

  From string parameter to a dictionary
Posted by: Mitchie87 - Oct-11-2019, 03:18 PM - Forum: Homework - Replies (9)

Dear members, is there anybody would can help my with my homework question?
I'm able to open the csv file. But from there I really have no idea what ..... More

Print this item

  Multicast SSM Joins
Posted by: iunderwood74 - Oct-11-2019, 03:11 PM - Forum: Networking - No Replies

Good morning, folks.

I'm looking to use Python to do some work with IP Multicast under version 3.7.

However, the wrinkle in the system is that t..... More

Print this item

  How to avoid slow cursor operations?
Posted by: sevensixtwo - Oct-11-2019, 02:16 PM - Forum: General Coding Help - No Replies

Hi. I'm using numpy as np. I have a 2D array called CC of all zeros and ones. For every one in CC, I want to change all adjacent array values to on..... More

Print this item

  Monty Python Quote Most Applicable to Programming
Posted by: ichabod801 - Oct-11-2019, 02:00 PM - Forum: Bar - Replies (4)

What Monty Python quote do you think is most applicable to programming a computer? My vote is:

Sir Robin Wrote:That's easy!

Print this item

  have homework to add a list to a list using append.
Posted by: celtickodiak - Oct-11-2019, 12:14 PM - Forum: Homework - Replies (2)

So I am attempting to add a list to a list with append, but I don't think it is working, as I cannot call the list back out using another option. This..... More

Print this item

  Print
Posted by: kdiba - Oct-11-2019, 11:12 AM - Forum: General Coding Help - Replies (7)

Hello, I'm trying to find a way to excute the command print below to get the same load the prediction. But it doesn't load it, it just print the print..... More

Print this item

  snmp hex-string to date time
Posted by: anna - Oct-11-2019, 11:05 AM - Forum: General Coding Help - Replies (10)

Hi All,


My snmpwalk output as below

SNMPv2-SMI::enterprises.6527.3.1.2.2.4.2.1.32.1.35684352 = Hex-STRING: 07 E2 05 08 00 00 00 00 2B 00 00
..... More

Print this item

  Weighted average with multiple weights and groups
Posted by: amyd - Oct-11-2019, 10:30 AM - Forum: Data Science - No Replies

I am a beginner in Python and I am trying to improve my code - so I would appreciate some advice on how to improve the efficiency of the following.
..... More

Print this item

  Generating a dict from provided randomizer
Posted by: beLIEve - Oct-11-2019, 08:47 AM - Forum: Homework - No Replies

Hello

Last thread talk
https://python-forum.io/Thread-Get-synta...rstand-why

Soo i am far away from this Dance
But still ne..... More

Print this item

  Openpyxl with large file
Posted by: LocalFolder - Oct-11-2019, 08:47 AM - Forum: General Coding Help - Replies (4)

Good morning my dear Python Experts,

I'm new here, I'm not an expert with coding or python and i have an issue with openpyxl.

I have some proces..... More

Print this item

  How to Save Each ROI Seperately
Posted by: murkoc - Oct-11-2019, 08:40 AM - Forum: General Coding Help - No Replies

Hello,

I have below code:

[python]import cv2
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1..... More

Print this item

  Question about list and while function
Posted by: doug2019 - Oct-11-2019, 02:39 AM - Forum: General Coding Help - Replies (6)

I am trying to code a list of 10 items whose values ​​come from the equation y=a*(b-x) and complete the rest of it with 0. e.g:
[python]
a=1
b=5..... More

Print this item

  size of set vs size of dict
Posted by: zweb - Oct-11-2019, 01:32 AM - Forum: General Coding Help - No Replies

>>> n = 10000
>>> s = {x for x in range(n)}
>>> sys.getsizeof(s)
524512
>>> d = {x:1 for x in range(n)}
>>> sys.getsizeof(d)
295008

I would h..... More

Print this item

  Dumbfounded
Posted by: ichabod801 - Oct-11-2019, 01:23 AM - Forum: Bar - Replies (5)

Here I am, watching videos on YouTube, and the image came to me of my Mom's Apple ][. Not even the first computer I programmed on. And I am just dumbf..... More

Print this item

  Problem rendering file .css?
Posted by: JohnnyCoffee - Oct-11-2019, 12:09 AM - Forum: Web Scraping & Web Development - Replies (4)

I was able to embed inside a python function html5 tags, but I could not style with css the page in the browser? Accessing the source code from the br..... More

Print this item

Smile Help needed. Python Newbie!, it will be fun.
Posted by: knightdea - Oct-10-2019, 10:13 PM - Forum: General Coding Help - Replies (3)

Hi.

So I just started learning python as my first ever programming language. (YAYYY)

It's been 4 intense days (between kids and work) but I have..... More

Print this item

  def Display Data Invalid Syntax error
Posted by: Linuxdesire - Oct-10-2019, 09:10 PM - Forum: General Coding Help - Replies (1)

I am getting an Invalid Syntax error and I cannot find it, it highlights the line and I know that it can be above it but still cannot find it. . I hav..... More


Attached Files

Thumbnail(s)
   
Print this item

  Trouble with encoded data (I think)
Posted by: fishglue - Oct-10-2019, 08:15 PM - Forum: General Coding Help - No Replies

Hi guys!

My script is reading a PDF using pytesseract OCR.
My goal is to extract text from various PDF formats, extract certain numbers from said ..... More

Print this item

  Basic subtraction error
Posted by: rix - Oct-10-2019, 08:01 PM - Forum: General Coding Help - Replies (4)

I'll show it with some code:

[python]Var1=str(input("What is Var1?")
#For example user inputs 8.10
Var2=str(input("What is Var2?")
#For example ..... More

Print this item

  Tkinter
Posted by: arbondioxide - Oct-10-2019, 07:18 PM - Forum: GUI - Replies (7)

Hello i am a recently new programmer. An A-Level student who is having problems with using tkinter. Im using Python 3.74 which already has tkinter bui..... More

Print this item

  Simple list comprehension misunderstanding
Posted by: Mark17 - Oct-10-2019, 06:31 PM - Forum: General Coding Help - Replies (3)

a = [1,4,9,16,25,36,49,64,81,100]
print(list(a[x] for x in range(6)))


gives me [1, 4, 9, 16, 25, 36] whereas

[Python]
a..... More

Print this item

  Merge two dict with same key
Posted by: RavCOder - Oct-10-2019, 03:19 PM - Forum: General Coding Help - Replies (3)

Hi,
I see this code to merge two dict with same key and I don't understand ,why in the final result is the key to the second dictionary (key b) taken..... More

Print this item

  Scrapping - A tool?
Posted by: kasper1903 - Oct-10-2019, 01:10 PM - Forum: Web Scraping & Web Development - Replies (10)

Hi guys.

At my work, I was asked for a solution for this problem. Basically, I work at a newspaper, who wish to scrap some urls for data, where the..... More

Print this item

  Inner Join merging bug?
Posted by: CaptainCsaba - Oct-10-2019, 12:51 PM - Forum: Data Science - No Replies

Hi!

I have the following very simple code:

[python]dfTycho = read_excel('TychoList.xlsx')
dfCodes = read_excel('CompaniesCodes.xlsx')
dfcomphousecod..... More

Print this item

  Just learnt python need help.
Posted by: Bal_exe - Oct-10-2019, 11:40 AM - Forum: News and Discussions - Replies (3)

So i learnt the basics of python what next?
Please reply anything useful.

Print this item

  [split] capitalize dict keys for display in string
Posted by: newbieAuggie2019 - Oct-10-2019, 10:27 AM - Forum: General Coding Help - Replies (3)

[quote='perfringo' pid='93924' dateline='1570691389']
In order to save repeated typing one can use dictionaries and try...except:

[python]
email ..... More

Print this item

  myfile = open(datafile, 'rb') not working
Posted by: mford29_programmer - Oct-10-2019, 08:54 AM - Forum: General Coding Help - Replies (4)

Morning All,
i'm trying to write code to use requests.post() but it keeps skipping the try and printing 'Error' with one particular line.

[python]..... More

Print this item

  Time execution of a "for loop" with zip different in 2 equivalent context
Posted by: sebastien - Oct-10-2019, 08:50 AM - Forum: General Coding Help - Replies (1)

Hi everybody,

I am using this portion of code with a "for loop" and zip in two different but rather equivalent context :

[python]
result = mult..... More

Print this item

  Appending to list not working and causing a infinite loop
Posted by: eiger23 - Oct-10-2019, 07:05 AM - Forum: General Coding Help - Replies (8)

New to Python and Algorithims. Trying to solve this one before looking for solutions. Im having the problem towards the bottom where the coin is suppo..... More

Print this item

  TypeError: unsupported operand type(s) for -: 'str' and 'str'
Posted by: Balaji - Oct-10-2019, 06:05 AM - Forum: General Coding Help - Replies (4)

Hi,
I am new to python. I am trying to do some operation with my data set

I am trying to do this operation

[python]df['dif_and_sq'..... More

Print this item

  How does the code run? My code wrong?
Posted by: jollydragon - Oct-10-2019, 06:03 AM - Forum: General Coding Help - No Replies

[attachment=731]

Referring to the screenshot above, you can see the "print()" was excuted 2 times, although 1 time is expected.
According to the ..... More

Print this item

  spam, eggs, foobar, IDLE, logo for newbies
Posted by: newbieAuggie2019 - Oct-10-2019, 05:32 AM - Forum: News and Discussions - No Replies

If you are new to Python, and have read some classic books or even have had a look at this site, you may have probably also wondered what's all..... More

Print this item

  RE: import machine module named not found
Posted by: vikram20 - Oct-10-2019, 03:07 AM - Forum: Bar - No Replies

Hi
Can anybody help me on the below ?
working on ESP8266 with Micropython and flashing was perfect.
Managed to install import esptool but its not w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 2 hours ago bimosora Pedroski55 General Codin...
  print does not open conso... Yesterday, 15:59 Tycho_2025 Axel_Erfurt General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577497
  Tutorial Requ... 501495
  Web Scraping ... 441112
  Newbie with P... 385164
  New Users Int... 369982
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday
DataAnalytics021 Yesterday

User Panel Messages

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