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,515
» Latest member: Victormok
» Forum threads: 38,585
» Forum posts: 174,839

Full Statistics

Online Users
There are currently 691 online users.
» 0 Member(s) | 686 Guest(s)
Bing, Google, Yandex, Apple

Latest Threads
Analizador de vibraciones
Forum: General Coding Help
Last Post: Victormok
1 hour ago
» Replies: 0
» Views: 26
Best way to pass data to ...
Forum: Game Development
Last Post: RogereK
4 hours ago
» Replies: 7
» Views: 5,075
smbus.SMBus i2c code whic...
Forum: General Coding Help
Last Post: Earnestacuts
5 hours ago
» Replies: 3
» Views: 563
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
Yesterday, 04:17 AM
» Replies: 17
» Views: 31,763
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 12:24 AM
» Replies: 1
» Views: 186
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:52 PM
» Replies: 5
» Views: 364
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:46 PM
» Replies: 1
» Views: 144
Looking for ideas
Forum: Bar
Last Post: Larz60+
May-23-2025, 10:55 AM
» Replies: 2
» Views: 470
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
May-23-2025, 12:35 AM
» Replies: 9
» Views: 2,704
Languages
Forum: General Coding Help
Last Post: Arush
May-22-2025, 06:51 PM
» Replies: 2
» Views: 264

 
  Insert into SQL Table only when Table is First Created?
Posted by: Extra - Jun-26-2022, 10:41 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm trying to add default values to my SQLite table when it first gets created using and INSERT statement.
Right now, every time I run the..... More

Print this item

  In consistency in code execution
Posted by: Led_Zeppelin - Jun-26-2022, 08:45 PM - Forum: General Coding Help - Replies (1)

The following piece of code does not produce the output that I am seeking.

[code]
df.head()

df1 = df

df.drop(["timestamp","time_period","mac..... More

Print this item

  find some word in text list file and a bit change to them
Posted by: RolanRoll - Jun-26-2022, 12:40 PM - Forum: General Coding Help - Replies (3)

hi
I need to find some word in my text list file for example V_20220412 in
S1A_IW_SLC__1SDV_20220412T022912_20220412T022940_042734_05197D_3860..... More

Print this item

  Merge video with subtitles
Posted by: Pavel_47 - Jun-26-2022, 10:57 AM - Forum: General Coding Help - Replies (26)

Hello,
I'm looking for a solution allowing to merge video file (.mp4) with subtitles file (.vtt).
Any suggestions ?
Thanks

Print this item

  Connect to HC-05 Bluetooth (NOT BLE)
Posted by: korenron - Jun-26-2022, 09:06 AM - Forum: General Coding Help - No Replies

Hello,
I'm trying to connect to a HC05 Bluetooth and send it "0"\"1"

in the scan I can see the device , but I'm unable to connect to it
when I t..... More

Print this item

  Shopping cart program
Posted by: Tofuboi03 - Jun-26-2022, 06:11 AM - Forum: Homework - Replies (7)

#This is a shopping cart program that I am doing for school. I've managed to store the item and price. But can't get to do it the total or remove. I'm..... More

Print this item

  why /local?
Posted by: Skaperen - Jun-26-2022, 04:13 AM - Forum: News and Discussions - Replies (2)

Python 3.8.10 on Xubuntu (Ubuntu) 20.04.4

when i install a package using pip, it creates directory /local (not /usr/local) and instal..... More

Print this item

  I'm getting a String index out of range error
Posted by: debian77 - Jun-26-2022, 12:37 AM - Forum: General Coding Help - Replies (7)

This function returns True if the first letter of the string is the same as the last letter of the string and False if they’re different.

I'm havin..... More

Print this item

  The Text in the Label widget Tkinter cuts off the Long text in the view
Posted by: malmustafa - Jun-25-2022, 02:46 PM - Forum: GUI - Replies (4)

Hi all,

I'm using Windows 10 and Anaconda Jupyter. I'm trying to build a GUI with one button that randomly picks up a question from an Excel file ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Matplotlib example nodes available
Posted by: KennedyRichard - Jun-25-2022, 01:31 PM - Forum: Data Science - No Replies

Nodezator is out since last weekend! Install instructions on https://github.com/KennedyRichard/nodezator and manual on https://manual.nodezator.com
..... More

Print this item

  select files such as text file
Posted by: RolanRoll - Jun-25-2022, 12:56 PM - Forum: General Coding Help - Replies (2)

Hi I want to find and select files that has the same word in my text list for example choose and select
S1A_OPER_AUX_POEORB_OPOD_20190122T120724_V..... More

Print this item

Question Export Python output to Excel
Posted by: skyline1397 - Jun-25-2022, 10:02 AM - Forum: General Coding Help - Replies (1)

Hi,
I am trying to get Python outputs to be in Excel.
The code is:
[python]import xlwings as xw
import time
import schedule
from yahoo_fin.stock..... More


Attached Files

Thumbnail(s)
                   
Print this item

  Importing modules from different folders
Posted by: Tomli - Jun-25-2022, 04:44 AM - Forum: General Coding Help - Replies (3)

My program has the following structure:

Program
├── src
    ├── <classes>
├── test
    ├── <myTests>
I'm trying to use un..... More

Print this item

  Display value in the another entry field instead of message box
Posted by: adisc - Jun-24-2022, 09:21 PM - Forum: General Coding Help - Replies (6)

Hello,

I do have a code where after pasting value into entry field number 1 and after clicking button Generate, functions re-organizes previosuly p..... More

Print this item

  Passing a int into the query
Posted by: devilonline - Jun-24-2022, 08:34 PM - Forum: General Coding Help - Replies (3)

Hi, i have an input on my code and I want that this input pass a int to the query.
For example I type ‘1’ and it search by the number typed.

the c..... More

Print this item

  Accessing Python code & SQL datbase from other pc's
Posted by: Extra - Jun-24-2022, 07:36 PM - Forum: News and Discussions - Replies (1)

Hello,

I programed a simple inventory system and I'm trying to run it on 3 PC's. The inventory items are stored on an SQLite Database (inventory.db..... More

Print this item

  [Solved]Help displaying a table with QSqlTableModel
Posted by: Extra - Jun-24-2022, 05:21 PM - Forum: GUI - Replies (10)

Hello,

I'm trying to display a different database on my CategoryTableView Widget but I can't seem to get the database to display on it?

This is..... More

Print this item

  A loop for autocompile LaTeX file takes high CPU
Posted by: meknowsnothing - Jun-24-2022, 12:29 PM - Forum: General Coding Help - Replies (1)

I tried to make a program to autocompile a LaTeX document on Linux Mint whenever the file changes. My effort is as follows:
[python]
import subproce..... More

Print this item

  Check if clients are online with ips stored in json [SOLVED]
Posted by: AlphaInc - Jun-24-2022, 11:29 AM - Forum: General Coding Help - Replies (6)

Hello everybody,

I have a script which should do something (to make an example, I let it create a folder). Therefore I defined a function which doe..... More

Print this item

  Changing a column header in QTreeView
Posted by: DrakeSoft - Jun-24-2022, 11:21 AM - Forum: GUI - Replies (4)

Hi,

I have a QTreeView which uses QFileSystemModel.

[python]

# import necessary modules
import sys
from PyQt5.QtGui import *
from PyQt5.Q..... More

Print this item

  [Solved]Help Adding results from for loop
Posted by: Extra - Jun-23-2022, 11:19 PM - Forum: GUI - Replies (2)

Hello,

I'm trying to multiply the Quantity*Price for each row then add them all up to get the total value of all the items I have.

This is what..... More

Print this item

  why I dont get any output from this code
Posted by: William369 - Jun-23-2022, 09:00 PM - Forum: General Coding Help - Replies (2)

Hi

I am trying to execute this code in repl.it but I dont get any result can you please advise what is wrong ?

https://replit.com/@MartinAdams2/..... More

Print this item

  Adding to python environment in pyenv virtual project
Posted by: Larz60+ - Jun-23-2022, 07:58 PM - Forum: Bar - Replies (4)

I have a virtual environment that uses pyenv python 3.10.4.

Gnu radio is installed in /usr/.../gnuradio

Normally, you would export the PYTHONPAT..... More

Print this item

Star Nodezator (free Python node editor) released to the public domain!
Posted by: KennedyRichard - Jun-23-2022, 07:57 PM - Forum: News and Discussions - Replies (4)

Nodezator is a multi-purpose visual editor to connect Python functions (and callables in general) visually in order to produce flexible parametric beh..... More

Print this item

  For loop + add something
Posted by: Matheus - Jun-23-2022, 07:34 PM - Forum: General Coding Help - Replies (10)

Hello,

I am relevant new to the language Python. However, I can code in PHP and VBA and other languages so I am not a total beginner.


I am won..... More

Print this item

  matching a repeating string
Posted by: Skaperen - Jun-23-2022, 06:23 PM - Forum: General Coding Help - Replies (2)

i have a single character (such as ".") in variable foo and another variable bar with a one or more repeat of a single character (such a..... More

Print this item

  using StandardScaler on a heterogenous matrix.
Posted by: Led_Zeppelin - Jun-23-2022, 05:24 PM - Forum: General Coding Help - No Replies

I am trying to use StandardScaler on a dataset that is but not all numbers.

The way to do that is now shown.


[code]
from sklearn.preprocessin..... More

Print this item

  Splitting code into several files
Posted by: TLammert - Jun-23-2022, 04:04 PM - Forum: General Coding Help - Replies (4)

Hi Everyone ..
I am trying to split a large .py program into a number of smaller .py files to make maintenance and editing easier ..
I have moved ..... More

Print this item

  Split Arguments ?
Posted by: jesse68 - Jun-23-2022, 03:16 PM - Forum: General Coding Help - Replies (3)

Hi, trying to understand these arguments to this split command which I can't find documented. They may not be related to the split command.

Adding ..... More

Print this item

  freelance Python jobs
Posted by: Tigran_Petrosyan93 - Jun-23-2022, 01:46 PM - Forum: News and Discussions - No Replies

Hi guys!
Is it possible to work as a freelancer using Python being entry level coder? And where? Are there websites where people do that?
Thanks.

Print this item

  Nested QStackedLayout
Posted by: Milestone - Jun-23-2022, 10:40 AM - Forum: General Coding Help - No Replies

If I add a widget to QStackedLayout the count() show me the correct number of stacked layout. However if I use addChildLayout the count() show one les..... More

Print this item

  AttributeError: 'numpy.int32' object has no attribute 'split'
Posted by: rf_kartal - Jun-23-2022, 09:17 AM - Forum: General Coding Help - Replies (6)

Hi everyone,

I get the error "AttributeError: 'numpy.int32' object has no attribute 'split'" in all codes that contain UTCDateTime functions I use...... More

Print this item

  Sudoku Solver in Python - Can someone explain this code ?
Posted by: qwemx - Jun-23-2022, 09:12 AM - Forum: General Coding Help - Replies (6)

[python]M = 9
def puzzle(a):
for i in range(M):
for j in range(M):
print(a[i][j],end = " ")
print()
def solve(gr..... More

Print this item

Sad PyCharm Problems On A Mac
Posted by: Danno - Jun-23-2022, 01:11 AM - Forum: News and Discussions - No Replies

Hi. The purpose of this post is to give you a heads-up about using the Mac version of PyCharm to develop Python apps.

After 30+ years developin..... More

Print this item

  Storing new value to array
Posted by: William369 - Jun-22-2022, 05:59 PM - Forum: General Coding Help - Replies (4)

Hi

I am new to Python and I saw this two sum algorithm solution

[python]
class Solution:
def twoSum(self, nums: List[int], target: int) ->..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Analizador de vibraciones 1 hour ago Victormok Victormok General Codin...
  [PyGame] Best way to pass... 4 hours ago Milosz RogereK Game Developm...
  smbus.SMBus i2c code whic... 5 hours ago NewbyTyro Earnestacuts General Codin...
  Is Python used to make po... Yesterday, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... Yesterday, 00:24 Azdaghost deanhystad General Codin...
  Call CLI app with input? 05-23, 19:52 Winfried snippsat General Codin...
  backtesting can't optimiz... 05-23, 19:46 Running_Code snippsat General Codin...
  Looking for ideas 05-23, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... 05-23, 00:35 temlotresid6 RogereK Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
  Error on import: SyntaxEr... 05-21, 07:49 kirkwilliams2049 Kiongi General Codin...
Most views
  The best Prog... 568176
  Tutorial Requ... 468116
  Web Scraping ... 432957
  Newbie with P... 371845
  Thread remain... 343831
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12053
buran 8171
snippsat 7328
deanhystad 6828
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Victormok Today
Timpo Today
anitarani82 Today
robawtic Today
Stephenanern Today

User Panel Messages

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