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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,722
» Latest member: Francisasype
» Forum threads: 37,436
» Forum posts: 170,095

Full Statistics

Online Users
There are currently 388 online users.
» 2 Member(s) | 379 Guest(s)
Facebook, Bing, Applebot, Google, Yandex, Skaperen, deanhystad

Latest Threads
Request Delay
Forum: General Coding Help
Last Post: charlie_11
50 minutes ago
» Replies: 2
» Views: 3,877
Error on first Python lau...
Forum: General Coding Help
Last Post: garryp4
1 hour ago
» Replies: 0
» Views: 34
How to generate double ar...
Forum: Homework
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 57
How can you prevent Qt fr...
Forum: GUI
Last Post: deanhystad
2 hours ago
» Replies: 2
» Views: 69
Calculating Average with ...
Forum: General Coding Help
Last Post: snippsat
7 hours ago
» Replies: 5
» Views: 307
How to make a double loop...
Forum: Data Science
Last Post: Safinazsalem
Today, 10:12 AM
» Replies: 0
» Views: 71
Keep getting "SyntaxError...
Forum: General Coding Help
Last Post: Larz60+
Today, 07:39 AM
» Replies: 1
» Views: 117
converting an int to byte...
Forum: News and Discussions
Last Post: oilumiun12
Today, 05:20 AM
» Replies: 4
» Views: 1,190
DF.groupby(col).min works...
Forum: General Coding Help
Last Post: roryelila68
Today, 03:25 AM
» Replies: 4
» Views: 577
Multi-Threaded Camera Fee...
Forum: General Coding Help
Last Post: Khajababa69
Yesterday, 09:44 PM
» Replies: 0
» Views: 119

 
  a general question
Posted by: barryjo - Feb-01-2022, 06:04 PM - Forum: General Coding Help - Replies (5)

I have the following code, the first method, SendCommandV1, was given to me. My question is do I have to pass ser as an argument when I call SendComm..... More

Print this item

  Pendulum Help Please
Posted by: bill_z - Feb-01-2022, 02:49 PM - Forum: General Coding Help - Replies (6)

In a previous thread, it was suggested I use pendulum to get daylight saving time information. At that time, I was having issues with my Python versi..... More

Print this item

  Using like statement in pandas df
Posted by: bnadir55 - Feb-01-2022, 02:00 PM - Forum: General Coding Help - Replies (1)

Hello,
I have a function in which I want to return in a column all the values that like ABC and return it in a new column as ABC , but I get an erro..... More

Print this item

  remove colon if value is None
Posted by: wardancer84 - Feb-01-2022, 12:57 PM - Forum: General Coding Help - Replies (7)

hey,

i have this comprehension...

extracted_tags = [li['tags'] for li in rule["commands"] if li['tags'] is not None]
wor..... More

Print this item

  port scanner
Posted by: Than999 - Feb-01-2022, 12:24 PM - Forum: General Coding Help - No Replies

Hi, I am learning about cybersecurity and networking by following this Youtube video. For this project I am making a simple port scanner. However, whe..... More

Print this item

  Clearing listboxes
Posted by: klatlap - Feb-01-2022, 09:36 AM - Forum: GUI - Replies (3)

I currently use this function to clear multiple listboxes, but i feel is not a good way to do it and am sure can be done with a for loop but can't wor..... More

Print this item

  Modify project (so that it uses db, QSqlRelationalTableModel etc)
Posted by: panoss - Jan-31-2022, 10:14 PM - Forum: GUI - No Replies

I have this program which displays a form with a QTableView which has 2 columns.
The second column is a combo box.
I want to modify it so that:
-th..... More

Print this item

  use of format function
Posted by: barryjo - Jan-31-2022, 10:09 PM - Forum: General Coding Help - Replies (3)

In the following code, s is returned as an integer
The output is 1
How do I convert the integer s into a string with two decimal places.
i.e. I wou..... More

Print this item

  The use of enumerate
Posted by: Frankduc - Jan-31-2022, 04:32 PM - Forum: General Coding Help - Replies (3)

Hello,

Trying to substract one index by another.

[python]def is_prime_v1(n):
"""Return a boolean indicating if integer n is prime"""
if n ==..... More

Print this item

  Why is this Python code running twice?
Posted by: mcva - Jan-31-2022, 03:09 PM - Forum: General Coding Help - Replies (5)

Hi everybody
Why is this code running twice? Is this related with the variables that the code imports from convert_nc_to_csv1?
Thank you.


[pyth..... More

Print this item

  How to concatenate filepath with variable?
Posted by: Mark17 - Jan-31-2022, 02:30 PM - Forum: General Coding Help - Replies (2)

Hi all,

I'm trying to write a program that will replace a couple lines of a new program (placed in a set filepath) and replace a couple filepath li..... More

Print this item

  How to know coming snmp trap version in python pysnmp?
Posted by: ilknurg - Jan-31-2022, 12:16 PM - Forum: General Coding Help - No Replies

I have a snmp trap receiver for snmp v2. I want to get snmp version in coming traps. If snmp version is 1 or 3 or anything else, return an error. How ..... More

Print this item

  ssues with importing data from ODBC
Posted by: Slavek_d - Jan-31-2022, 09:06 AM - Forum: General Coding Help - Replies (1)

Hi, I am new to Python and I started immediately from importing data I am planning to analyse in pandas(?) to get tables, mean scores etc. I know how ..... More

Print this item

  Give a number for Variable
Posted by: quest - Jan-31-2022, 02:16 AM - Forum: General Coding Help - Replies (2)

I defined symbols via Sympy and I created an array. Then when I want to give a value to the variable, the variable still stay as variable.

[python]..... More

Print this item

  Is it normal so much time training for Training Custom Object Detector??
Posted by: hobbyist - Jan-30-2022, 07:26 PM - Forum: Data Science - Replies (2)

I am following this tutorial: https://tensorflow-object-d[url=https://python-forum.io/thread-36233.html]..... More


Attached Files

Thumbnail(s)
   
Print this item

  Call a function in FormA from FormB
Posted by: panoss - Jan-30-2022, 06:56 PM - Forum: GUI - Replies (3)

Hi everybody.
I 'm looking for a simple example (with SIGNAL, SLOt and Emit()) where we have:
-a main form, say 'FormA' which opens an..... More

Print this item

  question regarding my Python port scanner script
Posted by: Than999 - Jan-30-2022, 04:31 PM - Forum: Networking - No Replies

Hi, I am learning about cybersecurity and networking by following this Youtube video. For this project I am making a simple port scanner. However, w..... More

Print this item

  FTp timeout except
Posted by: korenron - Jan-30-2022, 01:54 PM - Forum: General Coding Help - Replies (2)

Hello
I'm uploading a script file to a server
which casue the server to reboot ( which is what I want )
how do I make the python ignore it? and s..... More

Print this item

  SOlving LInear Equations in Python(Symoy, NUmpy) - Coefficient Problem
Posted by: quest - Jan-30-2022, 11:50 AM - Forum: General Coding Help - Replies (3)

Hello I am trying to solve set of equations and I actually know the how to solve them but I am having some problems and for some reason I cannot give ..... More

Print this item

  Pandas dataframe comparing
Posted by: anto5 - Jan-30-2022, 10:21 AM - Forum: Data Science - No Replies

Hello,

I am reading a csv file using pandas.

my dataframe consist of 3.7 million records and has two column: Date, Subscribers_ID

my datafram..... More

Print this item

  Issue with with list
Posted by: Abdirahman - Jan-30-2022, 09:42 AM - Forum: Homework - Replies (4)

I was solving a challenge on Microsoft course on python, you are given output and asked to reproduce it.

here is the given output:

[output]There..... More

Print this item

  I can't open a link with Selenium in Python
Posted by: jao - Jan-30-2022, 04:21 AM - Forum: General Coding Help - No Replies

Hello, I'm having problems with Selenium in Python.

I'm learning Selenium in python and I can't click on a link.

Usei o:
[python]
link.send_ke..... More


Attached Files

Thumbnail(s)
   
Print this item

  help needed running a simple function in pyqt5
Posted by: diodes - Jan-30-2022, 02:06 AM - Forum: GUI - Replies (27)

Hi

I am new to python and would like to get a small function to accept 2 variables and then execute a small function in a pyqt5 window. I have rea..... More

Print this item

  Trouble selecting attribute with beautiful soup
Posted by: bananatoast - Jan-29-2022, 03:23 PM - Forum: General Coding Help - Replies (3)

I'm writing my first program to download images from a website and have run into a roadblock.
I can't seem to get the src attribute in the variable '..... More

Print this item

  Facing Problem while opening a file through command prompt
Posted by: vlearner - Jan-29-2022, 02:13 PM - Forum: General Coding Help - Replies (4)

Hi Everyone,

Here is the code that I have written for reading a file through command prompt.
[python]
from sys import argv

script, filename =..... More

Print this item

  Meltdown Mitigation (operators + conditionals) beware: Exercism potential spoiler
Posted by: Drone4four - Jan-29-2022, 12:23 PM - Forum: Homework - Replies (5)

I’m working on a coding challenge courtesy of exercism.org. It’s self-paced study courseware. Even though it is not for-credit, I’d still like to pres..... More

Print this item

  Tkinter Image buttons
Posted by: menator01 - Jan-29-2022, 11:32 AM - Forum: Code sharing - Replies (1)

Using Yoriz's BoolImage class from this post, I made an example of using mu..... More

Print this item

  Frames layout adding widgets
Posted by: klatlap - Jan-29-2022, 12:51 AM - Forum: GUI - Replies (7)

Hi, i have been struggling with this for days looking at tutorial but just can't get it, i am creating an applications, my thought is to create app, t..... More

Print this item

  [] vs *[]
Posted by: hshivaraj - Jan-28-2022, 11:34 PM - Forum: General Coding Help - Replies (3)

Hey guys

what the different between sending a send as [] and *[]? For instance

[python]def main():
x = [1] * 10
print(list(chain(*x)))..... More

Print this item

  The infinite sequence of prime numbers
Posted by: Gribouillis - Jan-28-2022, 09:57 PM - Forum: Code sharing - Replies (4)

[python]
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2022 Member Gribouillis of www.python-forum.io
#
# SPDX-License-Identifier: MIT

__vers..... More

Print this item

  Looking for some general advice
Posted by: Extra - Jan-28-2022, 09:40 PM - Forum: General Coding Help - Replies (5)

Saw this cool 1985 Home Automation system GUI (Link) and I was thinking about replicating it. I..... More

Print this item

  ValueError: not enough values to unpack (expected 4, got 1)
Posted by: vlearner - Jan-28-2022, 05:47 PM - Forum: General Coding Help - Replies (2)

while trying to execute the program I got the error mention in the subject.
kindly help me in this, I am new to argv concept
[python]
from sys impo..... More

Print this item

  Information about api.sunrise-sunset please
Posted by: bill_z - Jan-28-2022, 03:35 PM - Forum: General Coding Help - Replies (20)

I'm having some difficulties understanding this python code I found on the Internet. It is suppose to return sunrise and sunset time relative the the..... More

Print this item

  How to fine tune cutecharts?
Posted by: Gigux - Jan-28-2022, 03:02 PM - Forum: General Coding Help - Replies (1)

Hello,
I have made a graph with cutecharts but how can I customize the plot? Specifically, how:

  1. do I add a horizontal dashed black li..... More

Print this item

  Escape indentation
Posted by: Frankduc - Jan-28-2022, 02:25 PM - Forum: General Coding Help - Replies (11)

Hello,

Its probably the wrong way to do this, but i am trying to print my list and because of the if statement to get rid of the false returned, i ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Request Delay 50 minutes ago pheadrus charlie_11 General Codin...
  Error on first Python lau... 1 hour ago garryp4 garryp4 General Codin...
  How to generate double ar... 2 hours ago Safinazsalem deanhystad Homework
  [PyQt] How can you preven... 2 hours ago Batucada deanhystad GUI
  Calculating Average with ... 7 hours ago mikasa snippsat General Codin...
  How to make a double loop... Today, 10:12 Safinazsalem Safinazsalem Data Science
  Keep getting "SyntaxError... Today, 07:39 Pedroski55 Larz60+ General Codin...
  converting an int to byte... Today, 05:20 Skaperen oilumiun12 News and Disc...
  DF.groupby(col).min works... Today, 03:25 samgardner5 roryelila68 General Codin...
  Multi-Threaded Camera Fee... Yesterday, 21:44 Khajababa69 Khajababa69 General Codin...
  [HELP] The Application of... Yesterday, 14:22 MistyhV1 MistyhV1 Data Science
Most views
  The best Prog... 434117
  Web Scraping ... 320660
  Tutorial Requ... 310230
  Newbie with P... 262836
  Thread remain... 247486
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11876
buran 8090
snippsat 7097
deanhystad 6234
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Francisasype Today
charlie_11 Today
garryp4 Today
Batucada Today
Safinazsalem Today

User Panel Messages

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