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,862

Full Statistics

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

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 237
[BeautifulSoup] A few que...
Forum: Web Scraping & Web Development
Last Post: Winfried
4 hours ago
» Replies: 0
» Views: 18
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:03 AM
» Replies: 1
» Views: 110
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Yesterday, 06:47 PM
» Replies: 2
» Views: 185
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Yesterday, 04:13 PM
» Replies: 5
» Views: 3,100
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 214
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 155
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 216
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 377
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 92

 
  Cannot use "threading" module on python3
Posted by: Tei_tsubaki - Aug-24-2020, 08:24 AM - Forum: General Coding Help - Replies (1)

I use the below code

import threading
I tried to open the file.
It said "No module named 'threading'"
I checked my lib and I ..... More

Print this item

  Retrieve data from MongoDB
Posted by: dsuk - Aug-24-2020, 07:44 AM - Forum: General Coding Help - Replies (2)

I saved some data in mongodb using mongoengine. That binary field look like this [python]{ "$binary": "/9j/4QA4.........ldfl==", "$type": "00"}..... More

Print this item

  How to align two 2D images?
Posted by: mandaxyz - Aug-24-2020, 07:21 AM - Forum: Data Science - No Replies

Hello, I have total of 400 images that should be aligned, it would be a pain if I align them manually by mouse because there are a lot of images, and ..... More

Print this item

  Mutable Strings
Posted by: millpond - Aug-24-2020, 03:53 AM - Forum: General Coding Help - Replies (3)

I am trying to move from Perl to Python. Perl is a bit too esoteric for some of the more complex stuff I want to to in the future, and Python code is ..... More

Print this item

  Help with writing or plan part of code
Posted by: Merlin_1 - Aug-24-2020, 12:23 AM - Forum: General Coding Help - Replies (1)

You can try to write it in python for me, but I also accept somthing like a code plan without actual code

There are two dictionaries in first are na..... More

Print this item

  Binary data to Image convert
Posted by: Nuwan16 - Aug-23-2020, 08:38 PM - Forum: General Coding Help - Replies (1)

In my case I stored binary data inside user collection as user_pic using mongoengine. It looks like this
[p..... More

Print this item

  Buy a Zoom call with tkinter tutor?
Posted by: OogieM - Aug-23-2020, 08:26 PM - Forum: Jobs - Replies (1)

I'm running into some issues with tkinter and trying to pull stuff out into classes succesfully.

I am sure it's my own problem with translating how I..... More

Print this item

  Including modules in Python using sys.path.append
Posted by: JoeDainton123 - Aug-23-2020, 08:09 PM - Forum: General Coding Help - Replies (1)

Hi all

I was hoping for some advice.

My company has python version 3.5 IDLE.

My company is NOT a software company, i have started using it to..... More

Print this item

  How to append to list a function output?
Posted by: rama27 - Aug-23-2020, 07:03 PM - Forum: General Coding Help - Replies (5)

Hi, I have a following issue. I need to append a function's output into a list. See a simplified code bellow:

[python]
def output(n):
i = n
..... More

Print this item

  any concerns around using os.path.isFile() in web app
Posted by: it07 - Aug-23-2020, 06:52 PM - Forum: Web Scraping & Web Development - Replies (6)

hello,

are there any security concerns if i use os.path.isFile() in the context of a Flask web server? i do not want to hardcode web pages so i mad..... More

Print this item

  Why is the line crashing program when line is false?
Posted by: ErnestTBass - Aug-23-2020, 06:02 PM - Forum: General Coding Help - Replies (1)

You say if


if not pd.isna(row['personnel.offense']):
        personnel = row['personnel.offense'].split(',')
If the first l..... More

Print this item

  Split string between two different delimiters, with exceptions
Posted by: DreamingInsanity - Aug-23-2020, 04:03 PM - Forum: General Coding Help - Replies (2)

I couldn't really think of a good title for this, so, sorry!

Say I have some data like so:
:1:123456:2:name:42:3:30:4::5:somerandomdata:9:8
The..... More

Print this item

  ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item()
Posted by: Rejoice - Aug-23-2020, 03:17 PM - Forum: General Coding Help - Replies (6)

[python]

def rangetrendAnalysis(df1):
if (df1['D1-OPEN'] > df1['D1-CLOSE']):
return "Bearish"
elif (df1['D1-OPEN'] < df1 ['D1-CLOSE']..... More

Print this item

  while x < x and z not c
Posted by: lastyle - Aug-23-2020, 02:36 PM - Forum: Data Science - No Replies

Hi all,

i am in need of some guide ;-)

The situation is :

I have some files that contain Datasets of 5 records. now i want to re arrange the Files..... More

Print this item

  kivy
Posted by: just_me - Aug-23-2020, 02:23 PM - Forum: GUI - Replies (1)

Does anyone know any good websites or anywhere I can find some good information regarding kivy? I've searched directly on kivy's website and through t..... More

Print this item

  "parameter"is possibly unbound
Posted by: CJ_JOYCE - Aug-23-2020, 10:17 AM - Forum: General Coding Help - No Replies

Hello everyone, I am a student who has just learned python. The following problems appeared in the program. It seems to be a basic problem, but I don’..... More

Print this item

  Learnig the use of grid
Posted by: ebolisa - Aug-23-2020, 09:22 AM - Forum: GUI - Replies (1)

Hi,

I'm more comfortable using the grid to align widgets, but I just cannot get it right. The following code is a simple login page based on a mai..... More

Print this item

  what is wrong with this code?
Posted by: bitcoin10mil - Aug-23-2020, 08:08 AM - Forum: General Coding Help - Replies (2)

[python]def check1():
import time
if stat1 < 5:
while stat1 <5:
print('smaller_than_5')
time.sleep(1)
print('same_or_bigger_th..... More

Print this item

  Importing numPy
Posted by: Milfredo - Aug-23-2020, 06:33 AM - Forum: General Coding Help - Replies (2)

I am new here and learning Python. Tried to import numPy and error said:

Traceback (most recent call last):
File "hello.py", line 6, in <module>..... More

Print this item

  ???: if "{choice}" in self._command
Posted by: BaiYouLing4 - Aug-23-2020, 04:15 AM - Forum: General Coding Help - Replies (3)

What does this do?

if "{choice}" in self._command
Curly braces are for replacement fields in strings for the .format method (or..... More

Print this item

  Simple way to view dataframes
Posted by: Davewd - Aug-23-2020, 02:16 AM - Forum: Data Science - Replies (1)

A simple way to visualise/pivot a dataframe (currently using pivottable.js)

import sho
sho.w(dataframe)

(pip install sho)
..... More

Print this item

  virtual assistant
Posted by: Nickd12 - Aug-23-2020, 12:14 AM - Forum: General Coding Help - Replies (5)

So i'm brand new to coding and have a quick question regarding a virtual assistant i'm trying to make. when it come to using a wake word that activate..... More

Print this item

  Find specific subdir, open files and find specific lines that are missing from a file
Posted by: tester_V - Aug-22-2020, 09:15 PM - Forum: General Coding Help - Replies (8)

Hi,

I have a directory with bunch of subdirectories each subdir has a one file only,
I need to process files only form the subdirectories that ha..... More

Print this item

  Replace ? by 0
Posted by: matador - Aug-22-2020, 08:44 PM - Forum: Data Science - Replies (6)

Hello to everyone,

I have a panda dataframe with many columns, one of them contains the ages of clients but when the age is unknown, I have ?. I'd ..... More

Print this item

  How can you make it simpler?
Posted by: bitcoin10mil - Aug-22-2020, 07:21 PM - Forum: General Coding Help - Replies (5)

Hi. I'm a newbie. I'm trying to make a Python program that can give me a random 4 digit number without digit repetition but it is too long and very co..... More

Print this item

  How do you replace a dictionary key with a new input?
Posted by: thewetmosquito - Aug-22-2020, 07:16 PM - Forum: General Coding Help - Replies (4)

Good afternoon Python community,

I am practicing my Python skills by working on a log-in/registration script that asks if you are currently registe..... More

Print this item

  "can't set attribute" on class
Posted by: DreamingInsanity - Aug-22-2020, 07:16 PM - Forum: General Coding Help - Replies (2)

I have a class like so:
[python]
class CustomLevel(BaseLevel):

def __init__(self, **data: dict) -> None:
self.data = data

@classmethod
..... More

Print this item

  Reading SQL scripts from excel file and run it using python
Posted by: saravanatn - Aug-22-2020, 06:13 PM - Forum: General Coding Help - Replies (2)

Hi All,

I placed my SQL scripts in excel file and my python code needs to read the SQL code from excel and then run the SQL code from SQL Server us..... More

Print this item

  factorial, repeating
Posted by: Aldiyar - Aug-22-2020, 05:52 PM - Forum: General Coding Help - Replies (4)

1.n = int(input())
2.
3.factorial = 1
4.while n > 1:
5.
6. factorial *= n
7. n -= 1
8.
9.print(factorial)
10.
11.#I would like to writ..... More

Print this item

  I Need Help Editing My Code
Posted by: eddywinch82 - Aug-22-2020, 05:29 PM - Forum: General Coding Help - Replies (10)

Hi there,

I have the following Python Code, which is run in Jupyter Notebook :-

[python]import pandas as pd
import requests
from bs4 import Be..... More

Print this item

  minor mistake in code for factorial
Posted by: spalisetty06 - Aug-22-2020, 04:48 PM - Forum: General Coding Help - Replies (2)

Hello,
I believe, I have written it correctly, but I am missing something.
[python]
'''write a program to get the factorial of a given number'''
d..... More

Print this item

  Importing tensorflow into pycharm on mac
Posted by: jrs92 - Aug-22-2020, 04:35 PM - Forum: General Coding Help - Replies (2)

I know there are a million videos explaining how to do this, but I'm still having trouble.

I was following this video tutorial, the megcourse on m..... More

Print this item

  functions and dictionary
Posted by: spalisetty06 - Aug-22-2020, 03:49 PM - Forum: General Coding Help - Replies (3)

Hello,
I am using functions, and I am passing the argument as dictionary, is there a way to get the value of the dictionary? I am able to get the key..... More

Print this item

  i got a decorator question
Posted by: yosef - Aug-22-2020, 02:14 PM - Forum: Homework - Replies (3)

i advertised it here on stackoverflow, until no..... More

Print this item

  Calling main in project structure fails
Posted by: sandro4912 - Aug-22-2020, 01:50 PM - Forum: General Coding Help - No Replies

I'm totally confused about project organization.

I organized my project with a structure like this:


[python]
bricks
--source
--game_o..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 2 hours ago Tuurbo46 deanhystad General Codin...
  [BeautifulSoup] A few que... 4 hours ago Winfried Winfried Web Scraping ...
  link variable to exc bloc... Today, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... Yesterday, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python Yesterday, 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...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
Most views
  The best Prog... 579155
  Tutorial Requ... 511632
  Web Scraping ... 442108
  Newbie with P... 386191
  New Users Int... 378856
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
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
eastnoob Today
cruisesfares Today
SavingSquirrel199835 Yesterday
Astrobert Yesterday
DataScientist071 Yesterday

User Panel Messages

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