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,276
» Latest member: eastnoob
» Forum threads: 38,789
» Forum posts: 175,864

Full Statistics

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

Latest Threads
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
1 hour ago
» Replies: 11
» Views: 5,945
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
1 hour ago
» Replies: 2
» Views: 4,272
[BeautifulSoup] A few que...
Forum: Web Scraping & Web Development
Last Post: Winfried
4 hours ago
» Replies: 0
» Views: 29
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
9 hours ago
» Replies: 3
» Views: 250
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:03 AM
» Replies: 1
» Views: 118
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 190
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,102
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 225
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 159
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 222

 
  How to split and combine embedded lines using less code
Posted by: pjfarley3 - Aug-13-2020, 07:37 PM - Forum: General Coding Help - Replies (6)

Below is a test program to illustrate what I want to achieve. It is done using several for loops with intermediate variables.

Is there a way to co..... More

Print this item

  Easy HTML Parser: Validating trs by attributes several tags deep?
Posted by: runswithascript - Aug-13-2020, 06:16 PM - Forum: Web Scraping & Web Development - Replies (7)

I have used Easy HTML Parser in a JSON to select the table I require the rows from with:

[python]"row": "find_once('table', ('class', 'forum_hdr_bo..... More

Print this item

  extract zip from .msg files and saving according to date stamp of email
Posted by: natjo - Aug-13-2020, 06:11 PM - Forum: General Coding Help - Replies (3)

Hello,

I've been running into some issues with trying to run some code via Visual Studio. I'm new to python and visual studio, and I found an extr..... More

Print this item

  Most Compatible Text Editor to Handle Large Files?
Posted by: Robotguy - Aug-13-2020, 05:49 PM - Forum: Data Science - Replies (2)

Hey Everyone,

I often deal with large text files; at minimum a few GBs, with >60 million rows (cols = 4).

I was wondering what is the most suita..... More

Print this item

  Error while checking for key in Dictionary
Posted by: onenessboy - Aug-13-2020, 05:20 PM - Forum: General Coding Help - Replies (5)

Hi,

I am trying below code to get values from dict
My sample dictionary look like this


[python]{'value': [{'id': '/subscriptions/xxxxxxxxx/..... More

Print this item

  while loop question
Posted by: spalisetty06 - Aug-13-2020, 03:37 PM - Forum: General Coding Help - Replies (2)

How is that it is looping even without decrement operator? possibly a stupid question, but it is a question for me.
[python]
l = [10, 20, 30, 40]
w..... More

Print this item

  concatenate a request to the endpoint of OSM-API?!
Posted by: apollo - Aug-13-2020, 02:45 PM - Forum: Web Scraping & Web Development - No Replies

dear Community,


can i run this in a multiple form - such as a concatenated request - that gives back all the results for south america!?

i e..... More

Print this item

  convert array of numbers to byte array
Posted by: adetheheat - Aug-13-2020, 01:38 PM - Forum: General Coding Help - Replies (3)

I have an array of numbers - some are 8 bits, some are 16 bit little endian. eg
1,120,340, 54238, 65132,
How do I convert them to one byte array ? ..... More

Print this item

  Multimode imports fine as script but not after compiling into exe
Posted by: chesschaser - Aug-13-2020, 01:28 PM - Forum: General Coding Help - No Replies

Hi guys!

I have a program I have been working on for a few months now and it runs fine in Pycharm as a script. However, after I use auto_py_to_exe ..... More

Print this item

  remove elements method not working
Posted by: spalisetty06 - Aug-13-2020, 12:40 PM - Forum: General Coding Help - Replies (4)

Hello,
I am trying to use remove() to remove elements from the list but it is not happening. Kindly help.

[python]
l = [10, 10, 10, 10, 20, 20, 3..... More

Print this item

  Wi-Fi Direct Python
Posted by: teodorisss - Aug-13-2020, 12:03 PM - Forum: Networking - Replies (2)

Hello to everyone.

Is there a way/module in python for the communication among two devices through Wi-Fi.

I want the case at which there is not ..... More

Print this item

  Convert xml to dict and group data and sum totals
Posted by: kashcode - Aug-13-2020, 10:44 AM - Forum: General Coding Help - Replies (5)

Hello,

I have xml file with data.
What I need to do. Group data by siteid and..... More

Print this item

  csv troubles
Posted by: DPaul - Aug-13-2020, 10:15 AM - Forum: General Coding Help - Replies (4)

Hi,

I downloaded a csv database with names and dates etc..
I can read it partially, line per line, split on ',' and get the values i want;
Except th..... More

Print this item

  Maximas in grayscale image
Posted by: yliats - Aug-13-2020, 09:01 AM - Forum: General Coding Help - Replies (2)

I have a grayscale image (2d matrix), and I want to extract N (defined integer) maximas (marked in red).

I don't want them to be clustered all toge..... More

Print this item

  How to create an app manager
Posted by: _ShevaKadu - Aug-13-2020, 07:49 AM - Forum: General Coding Help - Replies (8)

Hello! Please help me!
I'm trying to create an application manager with Tkinter and I want the desktop['application#'] variables to open..... More

Print this item

  Which is best python package to create interactive page?
Posted by: Py_veeran - Aug-13-2020, 06:57 AM - Forum: News and Discussions - Replies (2)

I have experience in python but not in web based projects. I am really confused to select which one . My requirements are,

I have created few utili..... More

Print this item

  Runs perfect in Python but fails to print last statement when converted to .exe. Help
Posted by: sunil422 - Aug-13-2020, 06:08 AM - Forum: General Coding Help - Replies (3)

This code runs perfect in Python but fails to print last statement(printing calculation) when converted to .exe using pyinstaller. Please Help!

# D..... More

Print this item

  Get database used data space from pyodbc
Posted by: susja - Aug-13-2020, 04:24 AM - Forum: General Coding Help - Replies (1)

I need to get 'used data space' of database. I decided to use sp_spaceused. I am using python 3 and pyodbc My code:
[python]
query = '''
CR..... More

Print this item

  trying to input a variable using random.choice
Posted by: python63 - Aug-13-2020, 12:14 AM - Forum: General Coding Help - Replies (9)

I've been messing with mad libs, doing them different ways, shortening code, etc, and i switched from getting user input to letting the program pick t..... More

Print this item

  Not able to use boto library with compressed content in python3
Posted by: avinash2020 - Aug-12-2020, 10:52 PM - Forum: General Coding Help - Replies (1)

I am trying to use the boto library with python3 to upload the data to GCS buckets. My data is latin-1 encoded, but it fails with following exception ..... More

Print this item

  How to stay motivated?
Posted by: Jan_97 - Aug-12-2020, 10:19 PM - Forum: Bar - Replies (7)

So basically the question is in the title. How to stay motivated? Not asking only in terms of programming, asking this for basically anything in life...... More

Print this item

  Need help merging/embedding
Posted by: duckredbeard - Aug-12-2020, 09:39 PM - Forum: General Coding Help - Replies (10)

I cleaned up two scripts that I am trying to merge. You can see that there are common elements to this. The first script I got working was the "keg1.p..... More

Print this item

  How to print just sizes content with splits?
Posted by: fergar470 - Aug-12-2020, 07:30 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi! I´m trying to get just 36.5 | 37..5 ..... sizes and not h2 content. However I´m getting it because I´m doing something wrong. I tested a lot of wa..... More

Print this item

  Changing Directory based on user input
Posted by: paulmerton4pope - Aug-12-2020, 07:27 PM - Forum: Homework - Replies (13)

Hi there,

I'm trying to create a program whereby a user can resize images in their own, inputted directory. As you can see below, I am able to view..... More

Print this item

  Convert multiple decimal numbers in string to floats
Posted by: Katy8 - Aug-12-2020, 06:29 PM - Forum: Homework - Replies (6)

I'm going through the MIT Open Course Ware in my free time. Just want to begin learning, so this is not for a class or credit. Just need a nudge in th..... More

Print this item

  Merging sorted dataframes using Pandas
Posted by: Robotguy - Aug-12-2020, 06:01 PM - Forum: Data Science - Replies (1)

I have a large (Nx4, >10GB) array that I need to sort based on col.2.

I am reading my data in chunks and sorting using Pandas. But I am unable to c..... More

Print this item

  Replacing a few characters of a specified character but not all of them from a string
Posted by: fatherted99 - Aug-12-2020, 05:56 PM - Forum: Homework - Replies (7)

I am doing a school programming project, and I was starting off with some user credential authorization system
A user would input a desired password ..... More

Print this item

  Python Tutorial for Beginner
Posted by: TimSouthee - Aug-12-2020, 05:06 PM - Forum: News and Discussions - Replies (2)

Hi I want to learn Python from scratch. can anybody please recommend best tutorial for beginner? Thanks a ..... More

Print this item

  2 Pairs 2 Lists
Posted by: Harshil - Aug-12-2020, 04:27 PM - Forum: Homework - Replies (7)

Problem: So Hey! Friends I Have Another Challenge And Is From My Friends!
He Challenged Me For The Problem Below But I Failed SO I Decided To Ask Her..... More

Print this item

  Recursion in Python Production Code
Posted by: robin73 - Aug-12-2020, 04:10 PM - Forum: News and Discussions - Replies (1)

I want to get a picture of whether/when recursion is used in Python code "in the wild." Attempts to gather information on this on Stack Exchange have ..... More

Print this item

  Mathplotlib - passing reference to axs to function
Posted by: qmfoam - Aug-12-2020, 04:10 PM - Forum: General Coding Help - Replies (5)

I have defined a series of subplots:
[python]
fig, ((ax1, ax3), (ax2, ax4), (ax5, ax7), (ax6, ax8)) = plt.subplots(4,2)
fig.subplots_adjust(left = ..... More

Print this item

  Using Pytables to Sort Large Arrays?
Posted by: Robotguy - Aug-12-2020, 03:35 PM - Forum: Data Science - No Replies

Hi

I have two large input files (>10 GBs, Nx4). Task is to sort these files based on column-2 as fast as possible. Right now I am chunking and savi..... More

Print this item

  How to assign a module to a variable even if it's not defined?
Posted by: mandaxyz - Aug-12-2020, 01:56 PM - Forum: General Coding Help - Replies (5)

Hello, I want to import modules from files, I need to store them into variables and I need their names as strings because I must check if the modules ..... More

Print this item

  Two QlineEdit box, which interrelated
Posted by: GMCobraz - Aug-12-2020, 01:52 PM - Forum: GUI - Replies (1)

Hi guys,

I have a general question here.

How can I make sure two QLineEdit box are interrelated?
I haven't code, just to get an idea here.

F..... More

Print this item

  unable to write to log file
Posted by: Mekala - Aug-12-2020, 11:39 AM - Forum: General Coding Help - Replies (2)

Hi,
I try to run read_data function from main, but although it read data, but not writing to log file.

main.py

[python]import logging
from da..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to put my game loop i... 1 hour ago temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 1 hour ago Barber532 SledgeNE Game Developm...
  [BeautifulSoup] A few que... 4 hours ago Winfried Winfried Web Scraping ...
  Graph Interpolate Difficu... 9 hours ago Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... Yesterday, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
Most views
  The best Prog... 579157
  Tutorial Requ... 511692
  Web Scraping ... 442122
  Newbie with P... 386193
  New Users Int... 378894
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+ 12108
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
eastnoob Yesterday
cruisesfares Yesterday
SavingSquirrel199835 11-18
Astrobert 11-18
DataScientist071 11-18

User Panel Messages

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