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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,399
» Latest member: aellamarley7776
» Forum threads: 38,825
» Forum posts: 176,031

Full Statistics

Online Users
There are currently 33 online users.
» 1 Member(s) | 24 Guest(s)
Bing, Google, Mojeek, Facebook, AOL, Ruth_Hernandez

Latest Threads
IP address for users
Forum: Networking
Last Post: Ruth_Hernandez
Less than 1 minute ago
» Replies: 5
» Views: 7,130
Dvoretsky Endgame Manual ...
Forum: General Coding Help
Last Post: aellamarley7776
16 minutes ago
» Replies: 0
» Views: 11
Shield Of Sparrows Devney...
Forum: General Coding Help
Last Post: iabellaswiftz9184
17 minutes ago
» Replies: 0
» Views: 9
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
1 hour ago
» Replies: 28
» Views: 15,537
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:11 AM
» Replies: 1
» Views: 128
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,602
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 204
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,619
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 176
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 329

 
  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: 394)
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: 590)
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: 514)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  IP address for users Less than 1 minute ago Robots Ruth_Hernandez Networking
  Dvoretsky Endgame Manual ... 16 minutes ago aellamarley7776 aellamarley7776 General Codin...
  Shield Of Sparrows Devney... 17 minutes ago iabellaswiftz9184 iabellaswiftz9184 General Codin...
  Merge video with subtitle... 1 hour ago Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q Yesterday, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580447
  Tutorial Requ... 519784
  Web Scraping ... 442789
  Newbie with P... 386998
  New Users Int... 386668
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aellamarley7776 Today
iabellaswiftz9184 Today
JulioLet Today
aellatsz9602 Yesterday
cruisesfares Yesterday

User Panel Messages

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