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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,960
» Latest member: llarkin6
» Forum threads: 38,728
» Forum posts: 175,533

Full Statistics

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

Latest Threads
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
2 hours ago
» Replies: 1
» Views: 617
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
2 hours ago
» Replies: 6
» Views: 4,844
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
5 hours ago
» Replies: 1
» Views: 1,515
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
11 hours ago
» Replies: 1
» Views: 2,570
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Today, 12:32 AM
» Replies: 0
» Views: 221
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 01:49 PM
» Replies: 2
» Views: 415
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
Yesterday, 03:45 AM
» Replies: 3
» Views: 502
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-24-2025, 02:48 PM
» Replies: 10
» Views: 29,803
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,649
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 506

 
  def Class
Posted by: trazom - Aug-24-2020, 03:35 PM - Forum: General Coding Help - Replies (4)

hi,

why is there sometimes an """_""" underscore in the definition of a Class , like this

[python]class C:
def __init__(self):
sel..... More

Print this item

  turtle calculate angles
Posted by: thruss - Aug-24-2020, 03:04 PM - Forum: General Coding Help - Replies (3)

Oh my this is so basic but....

I can create a 5 pointed star beautifully using a for loop. I can see different variations of star using while loop..... More

Print this item

  Run more than one window together with tkinter
Posted by: SmukasPlays - Aug-24-2020, 03:03 PM - Forum: GUI - Replies (1)

I'm doing a program that has loads of windows that do different functions. But I don't know how to run more than run window together. When I'm running..... More

Print this item

  Counting in a csv file
Posted by: standenman - Aug-24-2020, 02:57 PM - Forum: Data Science - Replies (4)

I have a csv file for which I would like to create a dictionary with "word" and "Count" within a column. So if I have Column "Name" with "Parkland Ho..... More

Print this item

  a complicated randomized function which I'm stuck on
Posted by: jojo77m - Aug-24-2020, 02:48 PM - Forum: General Coding Help - Replies (11)

Hi
I have a function that I can run at a specific time of the day, but I'd like to change it and I cannot get my head round the process.

I'd like ..... More

Print this item

  Analysing XML file
Posted by: rowan_bradley - Aug-24-2020, 02:40 PM - Forum: General Coding Help - Replies (1)

I am trying to analyse the following XML file, and ones like it:

<xml>
<exam xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www..... More

Print this item

  how to filter data frame dynamically with the columns
Posted by: psahay - Aug-24-2020, 01:10 PM - Forum: Data Science - No Replies

Hi every one I am learning python and am trying to filter a dataframe where I can create a dropdown for a column defined in dataframe and filter it d..... More

Print this item

  Need help for my code!
Posted by: saratha - Aug-24-2020, 12:48 PM - Forum: Homework - Replies (4)

Hey guys, I have a problem and I'm really confused of how to do it. Anyone know this?

Problem: print 100 random strings(all lowercase letters), eac..... More

Print this item

  Unexpected syntax error
Posted by: djwilson0495 - Aug-24-2020, 10:21 AM - Forum: General Coding Help - Replies (7)

I'm using the following code:

[python]
if score == 1 or score == 2: # if a weak password is created asks the user to try again
print("Thi..... More

Print this item

  storing conditions
Posted by: sureshSinghBisht - Aug-24-2020, 09:03 AM - Forum: General Coding Help - Replies (4)

I used following code for printing each word of a string in reveres order.
[python]
str=input("Enter a string : ")
i=0
j=0
k=0

# stored condi..... More

Print this item

  Don't understand error message
Posted by: Milfredo - Aug-24-2020, 08:48 AM - Forum: General Coding Help - Replies (2)

I had quite a bit of code written and it was working fine. Then I did something that threw the following error. But first I went back to the beginning..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Is the interpreter that c... 2 hours ago helendamdam noisefloor General Codin...
  pdf file processing: how ... 2 hours ago Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 5 hours ago P212 Biks News and Disc...
  Using Python to SSH and R... 11 hours ago justaguy SprunkiRetake Networking
  My goal to be hired worki... Today, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... Yesterday, 13:49 Perry DeaD_EyE General Codin...
  [Tkinter] how to export a... Yesterday, 03:45 RonR Pedroski55 GUI
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
Most views
  The best Prog... 576992
  Tutorial Requ... 499705
  Web Scraping ... 440751
  Newbie with P... 384731
  New Users Int... 368781
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7367
deanhystad 6895
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
llarkin6 Today
Xuitar Today
SprunkiRetake Today
GnomeSweetGnome Yesterday
alxpetrovo2272 Yesterday

User Panel Messages

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