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,390
» Latest member: desy845
» Forum threads: 38,821
» Forum posts: 176,018

Full Statistics

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

Latest Threads
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 59
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 230
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,067
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,892
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 137
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 82
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 147
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,296
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 109
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 757

 
  Wait til a date and time
Posted by: KatManDEW - Mar-11-2022, 04:56 PM - Forum: General Coding Help - Replies (2)

Hello. I've been working with dates and times and I'm trying to figure out how to get python to wait for a specific date and time to perform an operat..... More

Print this item

  Sympy Tutorial Series
Posted by: Knight18 - Mar-11-2022, 03:25 PM - Forum: Tutorial Requests and Submissions - No Replies

SymPy is a Scientific Computation Library in Python, used for an extensive range of mathematical tasks, such as Creating and Solving Expressions, Crea..... More

Print this item

  Print variable between "
Posted by: paulo79 - Mar-11-2022, 01:18 PM - Forum: General Coding Help - Replies (5)

Hi all,

I'm trying to print variable between " (double quotes) .
Code is below:

[python]import cx_Oracle as oracledb
import xml.etree.Element..... More

Print this item

  Ldap Search for finding user Groups
Posted by: ilknurg - Mar-11-2022, 11:39 AM - Forum: General Coding Help - Replies (1)

I want to do ldap search for finding users groups.

I have this. I doesnt totally give me the result that i want but it works. If you have a query t..... More

Print this item

  Count occurences in a string and add to a list using loops
Posted by: Leyo - Mar-11-2022, 11:01 AM - Forum: Homework - Replies (4)

Good morning,

May I ask for some help with this homework please?:

[quote]
We're given a string called text:

[python]text=""" \
I want a he..... More

Print this item

  How to seperate dict value?
Posted by: ilknurg - Mar-11-2022, 09:26 AM - Forum: General Coding Help - Replies (2)

How can i seperate ip address and mac addresses??


['192.168.1.240,fe80::350e:d28d:14a5:5cbb']

Print this item

  How can I organize my code according to output that I want
Posted by: ilknurg - Mar-11-2022, 08:24 AM - Forum: General Coding Help - Replies (1)

Hi everyone. I have the code below.

[python]import json

with open('data6.json') as f:
data = json.load(f)
for item in data:
f..... More

Print this item

  Class exceptions
Posted by: DPaul - Mar-11-2022, 08:16 AM - Forum: General Coding Help - Replies (1)

Hi,
Question without code, I'm looking for best practice.
Simplified: a program imports a class "sphere.py".
In sphere.py, 3 functions: Circonf(),..... More

Print this item

  Convert Scanned PDF to Searchable PDF
Posted by: fuzzin - Mar-11-2022, 03:38 AM - Forum: General Coding Help - Replies (3)

I'm making software in python and I need to convert a scanned pdf into a digital pdf that is searchable. Using OCRMyPDF module, but the process is ver..... More

Print this item

  Functions
Posted by: Leo - Mar-11-2022, 01:51 AM - Forum: Homework - Replies (5)

Hello everyone
The only problem I have here is printing the distance between two points. The program asks the user to input 2 values and then appends..... More

Print this item

  playing .wav sound file with sounddevice
Posted by: shift838 - Mar-10-2022, 11:06 PM - Forum: General Coding Help - Replies (5)

I have worked out how to play the file and I am using a PyQT5 form i created. Nothing fancy.

So I want to be able to update a status message to st..... More

Print this item

  Building SQLite Query
Posted by: OogieM - Mar-10-2022, 09:49 PM - Forum: General Coding Help - Replies (10)

I am creating a query on the fly based on user inputs. I have separated my code into building the SELECT statements, the JOIN caluses and finally the ..... More

Print this item

  Get cell name from XML file
Posted by: paulo79 - Mar-10-2022, 09:47 PM - Forum: General Coding Help - Replies (4)

Hi all,

I have an oracle table with CLOB column type with this content below:

[quote]
<?xml version="1.0" encoding="utf-8" ?>
<cli-output>..... More

Print this item

  Dynamic checkbox treeview issue
Posted by: OogieM - Mar-10-2022, 09:14 PM - Forum: GUI - Replies (8)

I'm trying to use a checkbox treeview to display the results of an SQLite query. I build the query's SELECT, JOIN and WHERE clauses on the fly based o..... More

Print this item

  Can't subscribe to a thread I created
Posted by: 4slam - Mar-10-2022, 08:07 PM - Forum: Board - Replies (1)

After creating a new thread, when I click on the thread's 'Subscribe to this thread' button, I get a page showing the following error:

[quote]Authori..... More

Print this item

  Randomizer script to provide options based on user and priority
Posted by: cubangt - Mar-10-2022, 08:03 PM - Forum: General Coding Help - Replies (10)

Ok, so i tend to get bored at home sometimes and always looking for fun projects to work on and some of them work with my daughter on as well..

So ..... More

Print this item

  Imports that work with Python 3.8 fail with 3.9 and 3.10
Posted by: 4slam - Mar-10-2022, 07:56 PM - Forum: General Coding Help - Replies (1)

OS: Ubuntu 20.04
Python 3.8, 3.9, 3.10 built from source without errors.

Imports work as expected with Python 3.8:
[code]
$ python
Python 3.8.1..... More

Print this item

  matplotlib Plotting smooth line with nans
Posted by: mikisDeWitte - Mar-10-2022, 07:24 PM - Forum: General Coding Help - Replies (4)

Hello,

I want to automate a chart (we call it snake charts, screenshot below) that so far we've been building in Excel.
It's a scatter plot with s..... More

Print this item

  Initializing, reading and updating a large JSON file
Posted by: medatib531 - Mar-10-2022, 06:38 PM - Forum: General Coding Help - No Replies

Hello,
I want to work with a large JSON file in the following form:

{"1": {"data": "abc"},"2": {"data": "xyz"},...}
I want be cont..... More

Print this item

  .format function
Posted by: Menthix - Mar-10-2022, 03:56 PM - Forum: General Coding Help - Replies (6)

Hello,

I'm trying to create 3 different tables on this model :

[python]
Table_2016=pd.read_pickle("./0_DATA/0_raw/Table_PM_2016.pkl")
Table_..... More

Print this item

  How can i parse my output?
Posted by: ilknurg - Mar-10-2022, 10:30 AM - Forum: General Coding Help - Replies (20)

I have this code.

[python]import json

with open('data5.json', 'r') as myfile:
data = myfile.read()
data_2 = data.replace('[', ' ')
..... More

Print this item

  python function
Posted by: Ali_ - Mar-10-2022, 10:25 AM - Forum: Homework - Replies (5)

Hello!
I need to create a function with 3 numbers, let's say def f(x,y,z). If I have something like (2,3,2), I want it to return A2B3C2 but if I have..... More

Print this item

  list all functions in a package
Posted by: aka - Mar-10-2022, 08:59 AM - Forum: General Coding Help - Replies (5)

Hi,

I am used to computing but not in python. Can please someone help me ?

I am trying to use a big package and I need to search some functions ..... More

Print this item

  string indices must be integers when parsing Json
Posted by: ilknurg - Mar-10-2022, 08:34 AM - Forum: General Coding Help - Replies (3)

Hi. I have the json file and its content is like in the below.
I have a code for read and parse it. You can see my code in the below.


[b]"['[{\..... More

Print this item

  POST requests - different requests return the same response
Posted by: Default_001 - Mar-10-2022, 06:43 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi All,

I'm trying to retrieve data from a site by sending a POST request which appears to work, however, it returns the same result despite the r..... More


Attached Files

Thumbnail(s)
   
Print this item

  IndexError: invalid index to scalar variable.
Posted by: jyotib2610 - Mar-10-2022, 06:06 AM - Forum: Data Science - Replies (3)

I got the error as "IndexError: invalid index to scalar variable.", while trying this PSO algorithm problem. I also want to plot a graph between itera..... More

Print this item

  Output to a zip
Posted by: keyboardkomando - Mar-10-2022, 04:11 AM - Forum: General Coding Help - Replies (2)

I tried to do some searching, however I was unable to find how to do this. I wanted to see if anyone has any suggestions on this. I am trying to get t..... More

Print this item

  Cursor write 3rd file empty
Posted by: paulo79 - Mar-09-2022, 11:26 PM - Forum: General Coding Help - Replies (3)

Hi all,

I have this code below where from table all have values so all files generated should not be empty.

[python]import cx_Oracle as oracle..... More

Print this item

  Regular Expression for matching words
Posted by: xinyulon - Mar-09-2022, 08:30 PM - Forum: General Coding Help - Replies (1)

Hello. I'm really not sure about the defined re pattern for this exercise, especially how to define the string words between == on both sides in order..... More

Print this item

  Is chromedriver detectable by heavy seured websites?
Posted by: kolarmi19 - Mar-09-2022, 07:21 PM - Forum: General Coding Help - Replies (4)

Hello everyone.
i'm new to this thing so i'm not going to understand high terminology :-) i'm getting help with prton code that scrape a heavy seured..... More

Print this item

  How to add for loop values in variable
Posted by: paulo79 - Mar-09-2022, 06:52 PM - Forum: General Coding Help - Replies (1)

I have this command with this output below. I want to put output values in a new variable LIST so could check for later if on that list there is a wor..... More

Print this item

  How to customize each x-axis separately?
Posted by: Mark17 - Mar-09-2022, 02:37 PM - Forum: General Coding Help - Replies (4)

Matplotlib is giving me fits. Here's the graphing portion of my code:

[Python]
datetimes = pd.to_datetime(btstats['Date']) #need datetime column ..... More

Print this item

  ATM machine (deposits/withdrawals) using OOP
Posted by: Drone4four - Mar-09-2022, 01:08 PM - Forum: General Coding Help - Replies (17)

I’m trying to write a rudimentary banking ATM machine using Python OOP. The exercise I am working on calls for all kinds of advanced features but I am..... More

Print this item

  How to save specific variable in for loop in to the database?
Posted by: ilknurg - Mar-09-2022, 11:27 AM - Forum: General Coding Help - Replies (1)

have commands like:

SELECT UserName FROM Win32_ComputerSystem
which gives me the username of computer. or [b]SELECT Manufacturer, Model FRO..... More

Print this item

  VSCODE Split Editor Window
Posted by: Krischu - Mar-09-2022, 07:28 AM - Forum: General Coding Help - Replies (1)

Version: 1.65.1 (Universal)
Commit: 8908a9ca0f221f36507231afb39d2d8d1e182702
Date: 2022-03-08T02:20:11.670Z
Electron: 13.5.2
Chromium: 91.0.4472.1..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
Most views
  The best Prog... 580366
  Tutorial Requ... 519105
  Web Scraping ... 442771
  Newbie with P... 386954
  New Users Int... 386279
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
desy845 Today
atalieyandext4063 Yesterday
finallen321 Yesterday
DTECHSYSTEM Yesterday
zashleyfracesz3221 Yesterday

User Panel Messages

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