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,937
» Latest member: atylerfraces2254
» Forum threads: 38,721
» Forum posts: 175,507

Full Statistics

Online Users
There are currently 64 online users.
» 0 Member(s) | 56 Guest(s)
Bing, AOL, Google, Facebook Dev, AOL

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,189
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 656
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,563
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 988
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,499
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,328
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,532
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,492
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,642
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,206

 
  bytes f-string ?
Posted by: Skaperen - Jun-08-2021, 10:43 PM - Forum: General Coding Help - Replies (5)

i can make a bytes string:

bs = b'foobar'
i can make an f-string:
foo = 'hello'
fs = f'{foo}bar'
no..... More

Print this item

  How to import an xml file to Pandas
Posted by: sjhazard - Jun-08-2021, 08:19 PM - Forum: Data Science - No Replies

Hello All,
I am a new Pandas user, I am now familiar with this application. I'm fine with importing a CSV file and similar data tables.
However, for..... More


Attached Files

.xml   teszt1.xml (Size: 7.92 KB / Downloads: 0)
Print this item

  listbox constantly being added to the list.
Posted by: speedev - Jun-08-2021, 07:50 PM - Forum: GUI - Replies (4)

Hi,

   

I made a simple left-justified menu with buttons. Assign functions as commands to buttons. That is, the menu contents are ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Read file, reformat and write new file
Posted by: bryanmartin113 - Jun-08-2021, 05:44 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm new to coding and struggling with a file that will take me an age to do manually.

I have a file C:\file.txt in format at the bottom. I w..... More

Print this item

  Round float according to uncertainty
Posted by: CatorCanulis - Jun-08-2021, 02:10 PM - Forum: Data Science - Replies (2)

Hello everyone,

I'm familiar with the rounding function in python but at work I encountered a new situation.

Say you have a measurement result l..... More

Print this item

  Why are two variables unequal as they point to the same value?
Posted by: fc5igm - Jun-08-2021, 01:29 PM - Forum: General Coding Help - Replies (4)

[python]>>> girl
<_io.TextIOWrapper name='D:\\python\\works\\girl_3.txt' mode='w' encoding='cp936'>
>>> fgirl3
<_io.TextIOWrapper name='D:\\python\..... More

Print this item

  List comprehension and Lambda
Posted by: cametan - Jun-08-2021, 06:54 AM - Forum: General Coding Help - Replies (2)

Let's think easy case. Use the map function like this:

test = map(lambda x: x, [1, 2, 3])
This gives us an iteratable object. T..... More

Print this item

  Python Style and Naming Variables
Posted by: rsherry8 - Jun-07-2021, 09:00 PM - Forum: General Coding Help - Replies (3)

Please consider the following Python code:
[python]def my_sum(array):
ret = 0
for i in range(len(array)):
ret += array[i]
ret..... More

Print this item

  [solved] Save a matplotlib figure into hdf5 file
Posted by: paul18fr - Jun-07-2021, 08:40 PM - Forum: Data Science - Replies (1)

Hi

I've tried several methods to save directly a figure from Matplotlib into a hdf5 file, but Hdfview cannot open the file ("error opening file"): ..... More

Print this item

  Error about parser library and tree builder
Posted by: Led_Zeppelin - Jun-07-2021, 07:09 PM - Forum: General Coding Help - Replies (8)

I am trying to run the code shown below. It fails at the line indicated as shown in this error;

[code]
FeatureNotFound T..... More

Print this item

  Export AWS Cognito Users
Posted by: fioranosnake - Jun-07-2021, 02:50 PM - Forum: General Coding Help - No Replies

HI,


Ive found the following solution : https://medium[url=https://python-forum.io/thread-33894.html]..... More

Print this item

  Get Latitude and Longitude for Multiple address
Posted by: San - Jun-07-2021, 01:47 PM - Forum: General Coding Help - Replies (5)

have list of companies in excel with address , i need to get Latitude and Longitude details for 300 companies.

I found the below code

[python]im..... More

Print this item

  Detect http request on my ip
Posted by: riccardoob - Jun-07-2021, 12:33 PM - Forum: Networking - Replies (1)

I want to write a python script that detects when a http request is made on the IP address of my home network. I have a dynamic DNS set up so that I c..... More

Print this item

  Simple Method to calculate average and grade
Posted by: ajitnayak1987 - Jun-07-2021, 12:33 PM - Forum: Homework - Replies (8)

Dear all

I have list of items
a=[[90 90 80 87 85],[60 70 80 7 85]] having list of item in as above arrange in 2 row and 5 column ist

I wanted..... More

Print this item

  Segmentation fault (core dumped)
Posted by: hobbyist - Jun-07-2021, 11:27 AM - Forum: General Coding Help - Replies (1)

Any idea what is wrong with this code here and gives me Segmentation fault (core dumped)??? I got the code from here:
..... More

Print this item

Photo How to process the array correctly
Posted by: Fly_jia - Jun-07-2021, 08:25 AM - Forum: General Coding Help - Replies (4)

[python]import numpy as np
from timeit import default_timer as timer

mask = np.load('mask.npy', allow_pickle=True)

cell_mask_new_all = mask[:, ..... More


Attached Files

.py   array_compare.py (Size: 480 bytes / Downloads: 387)
Print this item

  First time user
Posted by: cris - Jun-07-2021, 04:25 AM - Forum: Networking - Replies (1)

Help Please. This is my first time attempting Python. My testing lab has 4 Ethernet interfaces E0/0-3 on my Router. I am writing a script to shutdown ..... More

Print this item

  Using Local Html Data
Posted by: knight2000 - Jun-07-2021, 03:04 AM - Forum: General Coding Help - Replies (2)

Hi all,

As a newbie, I've been trying to get some practice in webscraping by trying to extract different elements on a html page, but I decided tha..... More


Attached Files

.html   localhtml.html (Size: 32.79 KB / Downloads: 541)
Print this item

  sum all ints of the same line
Posted by: ranbarr - Jun-06-2021, 07:52 PM - Forum: Homework - Replies (1)

hi, Im trying to calculate the mean of a mutation level of chromosomes.
Im caculating each chromosome mutation level with this line:

[python]formula ..... More

Print this item

  [Expired] Free Course: Automate the Boring Stuff with Python Programming
Posted by: Yoriz - Jun-06-2021, 01:18 PM - Forum: News and Discussions - No Replies

Expired
I stumbled across this but there are only 30 minutes left to grab it while you can.
..... More

Print this item

  How can I get Python Bulk Email Verification Script With API?
Posted by: zainalee - Jun-06-2021, 08:40 AM - Forum: General Coding Help - Replies (1)

Hello Everyone,
I have an email verification API and I want to use it through Python.
I wanna make a Python s..... More

Print this item

  PyCon 2021 videos
Posted by: snippsat - Jun-06-2021, 08:39 AM - Forum: News and Discussions - Replies (2)

Here a link of to all videos PyCon 2021
This one look interesting ..... More

Print this item

  Delete list while iterating
Posted by: shantanu97 - Jun-06-2021, 07:55 AM - Forum: General Coding Help - Replies (1)

I am looping over different worksheet in excel. I wanted to removed any tabs that are start with name "Sheet" and followed by anything. I want to loop..... More

Print this item

  Visual Python Programming flows
Posted by: Joost - Jun-06-2021, 06:51 AM - Forum: Code sharing - No Replies

If you are interested in programming workflows then please check out this BPMN-RPA library.

You can cr..... More

Print this item

  Python calculator help but not using while loop with true, any flags variable ,break
Posted by: kirt6405 - Jun-06-2021, 12:05 AM - Forum: Homework - Replies (13)

Hi there ,
I am new to python and having hard time coding basic calculator but the catch is that we cannot use while loop with break statement or whi..... More

Print this item

  seeking simple|clean|pythonic way to capture {1,} numeric clusters
Posted by: NetPCDoc - Jun-05-2021, 11:15 PM - Forum: General Coding Help - Replies (6)

seeking simple|clean|pythonic way (expression | pattern) to capture {1,} numeric clusters (i.e. "\d+") …
… associated with a single "key_phrase"?

(I..... More

Print this item

  Connect and disconnect to database
Posted by: snakes - Jun-05-2021, 06:37 PM - Forum: General Coding Help - Replies (3)

I can't seem to find straight answer in the books I've got or from my DDG searches...

When should I connect and disconnect to my database?

Is i..... More

Print this item

  Compile list of dictianories out of another list of dictianories by certain keys
Posted by: CatorCanulis - Jun-05-2021, 02:45 PM - Forum: General Coding Help - Replies (10)

Hi everyone,

I need to compile a new list of new dictianories out of another list of dictianories. The new list should contain dictianories from th..... More

Print this item

  How to open Python?
Posted by: bensan - Jun-05-2021, 02:36 PM - Forum: General Coding Help - Replies (42)

Im running Windows10. Downloaded Python 3.8.1. Downloaded PyCharm 2021.1.1. Also use basic editor UltraEdit.
If I type 6*2 & enter into Python prompt..... More

Print this item

  Adding a new column to a Panda Data Frame
Posted by: rsherry8 - Jun-05-2021, 12:30 PM - Forum: Data Science - Replies (2)

Please consider the following Python code:
[python]import pandas as pd


data = {
"l1": [50, 100, 150, 200, 250, -350, 450],
"l2": [100, 120..... More

Print this item

  How can i generate hierarchy directory
Posted by: Anldra12 - Jun-05-2021, 06:32 AM - Forum: General Coding Help - Replies (2)

Sorry i know the simple directory but i want to generate directory structure for project hierarchy like project name data result figure model script e..... More

Print this item

  How to print results of asyncio websockets at the same time?
Posted by: codingmonster - Jun-04-2021, 01:48 PM - Forum: General Coding Help - No Replies

Question

- How can I merge the results of two or three asynchronous websocket results, defined with the library `asyncio..... More

Print this item

  Importing module in jupyter Noteboook
Posted by: ajitnayak1987 - Jun-04-2021, 12:26 PM - Forum: General Coding Help - No Replies

Dear all

I have 2 files one is main.jpynb and keys.jpynb
I have set of keyvalues which i am going to use in main function.

In pyscripter we u..... More

Print this item

  Post IF Statement Input
Posted by: OrphanedSoul - Jun-04-2021, 01:49 AM - Forum: Homework - Replies (2)

So i've been tasked with:

Write a Python program that does the following:
1. Ask the use if he/she wants to convert from Fahrenheit to Cel..... More

Print this item

  How to save modification of a file in original file not a new one?
Posted by: mjrezayani - Jun-03-2021, 05:04 PM - Forum: General Coding Help - Replies (3)

Dear all,

I have a code to modify a file. This code make changes on my file and save it to a new file. But, I want to have changes(modifications) o..... More


Attached Files

.py   2.py (Size: 481 bytes / Downloads: 502)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576440
  Tutorial Requ... 498262
  Web Scraping ... 440344
  Newbie with P... 384225
  New Users Int... 367275
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+ 12087
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19
Hershien 09-19

User Panel Messages

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