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,239
» Latest member: racingsubby
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

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

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
1 hour ago
» Replies: 1
» Views: 25
Data Science
Forum: Data Science
Last Post: mamta25
2 hours ago
» Replies: 3
» Views: 2,568
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
9 hours ago
» Replies: 1
» Views: 98
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 147
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 125
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 126
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,283
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,378
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,580
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 206

 
  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

  Opening an empty Jupyter notebook in VSCODE
Posted by: Krischu - Mar-09-2022, 06:54 AM - Forum: General Coding Help - Replies (3)

Hi, I'm new to this forum.

I installed VSCODE 1.65.1 (macOS BigSur) with python and Jupyter. I'm able to drag and drop an .ipynb file into the edit..... More

Print this item

  an array to count votes
Posted by: thechungusmaximus - Mar-09-2022, 01:56 AM - Forum: Homework - Replies (2)

i need to make a code that counts the votes from 3 candidates from 4 different places, each person from those places can vote only once. the code has ..... More

Print this item

  Help add for loop results in a list
Posted by: paulo79 - Mar-09-2022, 12:26 AM - Forum: General Coding Help - Replies (4)

Hi all,

I'm new to Python. I have this :
[python]>>> import xml.etree.ElementTree as ET
>>> xml_to_parse1 = ET.parse('/tmp/xmlfile.xml')
>>> g..... More

Print this item

  How to store the resulting Doc objects into a list named A
Posted by: xinyulon - Mar-08-2022, 10:25 PM - Forum: General Coding Help - Replies (1)

Hey folks. I am a real new beginner for python and NLP.
I am stuck with this question: Store the resulting Doc objects into a list name A"
Is it poss..... More

Print this item

Bug Need Pointers/Advise for Cleaning up BS4 XPATH Data
Posted by: BrandonKastning - Mar-08-2022, 12:28 PM - Forum: Web Scraping & Web Development - No Replies

No syntax errors. Script runs!

I am having problems with BS4 & XPATH. BS4 (tag) = column1(courtlistener_case_name) and works perfect. BS4 (xpath) ..... More

Print this item

  How to save files in a separate directory
Posted by: Scordomaniac - Mar-08-2022, 10:31 AM - Forum: General Coding Help - Replies (3)

Hey, i'm working on a games save/loading function.
this is my code that find the file path for the players save (loading the save)
it works by findi..... More

Print this item

  ADS1256 RB PI3+
Posted by: frohr - Mar-08-2022, 08:44 AM - Forum: General Coding Help - No Replies

Hi,
I have RB PI 3+ and Waveshare ADS1256 ADC24bit. I need read at speed 30kSPS to buffer, for example 20k values after button pressed.
I try to use..... More

Print this item

  Fetching Images from DB in Django
Posted by: Dexty - Mar-08-2022, 04:51 AM - Forum: Web Scraping & Web Development - Replies (2)

It's a blog post and I already uploaded images to each post on the Admin page. The images aren't showing in the template, for some reason.
Project t..... More

Print this item

  How to find tags using specific text (timestamps) in a url?
Posted by: q988988 - Mar-08-2022, 02:24 AM - Forum: General Coding Help - Replies (1)

The tags are in the following format:

<pre>
<a href="../">../</a>
< a href="the text I want to extract" > the text I want to extract/</a>
..... More

Print this item

Question How do I skipkeys on json file read to python dictionary?
Posted by: BrandonKastning - Mar-07-2022, 10:48 PM - Forum: General Coding Help - Replies (3)

Here is a sample block of my code:

[CODE]
# Source: JSON - Courtlistener.com : https://www.courtlistener.com/api/rest/v3/opinions/47..... More

Print this item

  "django" is valid numeric from request.GET
Posted by: lemonred - Mar-07-2022, 08:23 PM - Forum: Web Scraping & Web Development - No Replies

Hi , my problem solved solution check is numeiric query request get.
Idea ?
My CODE:
[python]class ListViewPhoto(AdminAndStaffMixing, ListView):..... More

Print this item

  Python 3.8 on Ubuntu 20.04
Posted by: erdemath - Mar-07-2022, 04:33 PM - Forum: General Coding Help - Replies (1)

Hi,

Every time I start PyCharm Community through ubuntu terminal I see the following warning messages. And I believe this slows down my code from #..... More

Print this item

Question Problems with variables in multithreading
Posted by: Wombaz - Mar-07-2022, 02:39 PM - Forum: General Coding Help - Replies (2)

I have a problem and have no idea how to solve it. So I have n-threads to download data via bluetooth. This data has to go through a handler which unf..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 1 hour ago Reema Gribouillis General Codin...
  Data Science 2 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... 9 hours ago tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578724
  Tutorial Requ... 509389
  Web Scraping ... 441865
  Newbie with P... 385822
  New Users Int... 375283
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
racingsubby Today
Reema Today
lary_p Yesterday
Cristiano 11-08
Alfredd 11-08

User Panel Messages

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