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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 30 Guest(s)
AOL, Bing, Google, Applebot, snippsat

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 3
» Views: 77
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
9 hours ago
» Replies: 3
» Views: 91
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 64
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 98
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,033
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,551
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 180
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,193
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,437

 
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop
Posted by: Xeno - Sep-15-2022, 10:55 PM - Forum: General Coding Help - Replies (2)

[python]
//C++
string path = "C:/PycharmProjects/testProject/test/main.py"
FILE* fp = NULL;
errno_t fp_err = fopen_s(&fp, path.c_str(), "r");
if ..... More

Print this item

  Help discord bot
Posted by: Edward - Sep-15-2022, 09:55 PM - Forum: General Coding Help - No Replies

Hello! At a command "test" call writes an error in a stream. Help fix

[python]from re import M
import discord, asyncio
from discord.ext import co..... More

Print this item

Bug Embedded Python Memory Leaks
Posted by: Alexei - Sep-15-2022, 08:10 PM - Forum: General Coding Help - Replies (1)

Hi dear Python team,

I am a building a c/c++ application for general purpose and I would like to have in the application the possibility of running..... More

Print this item

  df.loc question
Posted by: Led_Zeppelin - Sep-15-2022, 06:26 PM - Forum: General Coding Help - Replies (1)

In the following code which as you can see there is one dataframe.

[code]
q = df.loc[df2['machine_status']==0]['sensor_06']
p = df.loc[df2['machi..... More

Print this item

  Need help with Return statement
Posted by: Columbo - Sep-15-2022, 04:19 PM - Forum: General Coding Help - Replies (13)

I’m trying to learn Python so I am trying to recreate an app that I did previously with Filemaker as well as with Purebasic. The app uses SQLite3 to ..... More

Print this item

  Merge all json files in folder after filtering
Posted by: deneme2 - Sep-15-2022, 02:32 PM - Forum: General Coding Help - Replies (10)

Hello all,
I'd like to ask your help to merge all json files in one folder after filtering data in each of them, name new file as "merged.json" in th..... More

Print this item

  Failed to execute child process (No such file or directory)
Posted by: uriel - Sep-15-2022, 02:01 PM - Forum: General Coding Help - Replies (1)

Hello everyone!
After successfully creating the .deb file with setuptools and extracting it. When launching the application desktop file, it gives an..... More

Print this item

  Calculated DF column from dictionary value
Posted by: plantagenet - Sep-15-2022, 12:50 PM - Forum: General Coding Help - Replies (2)

I would like to make a calculated column as shown here ('new'), from the exiting 'data' column (which is a list with a dictionary inside). It works in..... More

Print this item

  delete all files which contains word sql_Table1
Posted by: mg24 - Sep-15-2022, 11:23 AM - Forum: General Coding Help - Replies (2)

Hi Team,

how to delete below files from a folder
which contains word sql_Table1


sql_Table1.csv
sql_Table1.gzip
Chksum_sql_Table1_202..... More

Print this item

  Read All Emails from Outlook and add the word counts to a DataFrame
Posted by: sanaman_2000 - Sep-15-2022, 07:32 AM - Forum: General Coding Help - No Replies

[python]
import win32com.client
import os
import time
import datetime as dt
import re
import pandas as pd

DateFilter = dt.datetime.now() - dt..... More

Print this item

  color vision
Posted by: Skaperen - Sep-14-2022, 06:40 PM - Forum: Bar - Replies (11)

when i look at images on my laptop's display (System 76 KuduPro from 2014), they look fine with colors close enough for me. whites look white.

whe..... More

Print this item

  web scraping with <br> tag
Posted by: mfernandes - Sep-14-2022, 05:39 PM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to web scrape the following webpage: https://www.assemblee-nationale.fr/12/cr...#TopOfPage .
I would like to obtain t..... More

Print this item

  Getting barplots from the dropdown menu
Posted by: v_mn - Sep-14-2022, 10:48 AM - Forum: General Coding Help - No Replies

I have several bar plots in same figure as below:

[python]import pandas as pd
from bokeh.models import ColumnDataSource
from bokeh.plotting impor..... More

Print this item

  Python flask uwsgi nginx docker
Posted by: mfaridi - Sep-14-2022, 09:55 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi,
I have flask application and want make docker image for this flask app, I search around and find I can use flask by uwsgi and nginx,
can I find ..... More

Print this item

  MenuBar hidden when new window opens
Posted by: john8888 - Sep-14-2022, 03:48 AM - Forum: GUI - Replies (5)

Got my first menu working based on this code from the web. Problem is the menu commands disappear when a menu item is selected. Is there some way to..... More

Print this item

  Dickey Fuller failure
Posted by: Led_Zeppelin - Sep-13-2022, 03:54 PM - Forum: General Coding Help - Replies (4)

When I run the Dickey-Fuller test as shown here:

[code]
# dickey-fuller test
dft = adfuller (image_data_org['sensor_04'], autolag='AIC')
# dick..... More

Print this item

  pdfminer package: module isn't found
Posted by: Pavel_47 - Sep-13-2022, 02:01 PM - Forum: General Coding Help - Replies (25)

Hello,
In many examples of using of pdfminer, there are imports like this:
[python]from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpr..... More

Print this item

  Getting dictionary in the bokeh ColumnDataSource
Posted by: v_mn - Sep-13-2022, 05:20 AM - Forum: General Coding Help - Replies (1)

I have a dictionary as below:

[python]d={0:[{'key':'apple', 'count':50},{'key':'ibm', 'count':25}],
1: [{'key':'apple', 'count':40},{'key':'ibm',..... More

Print this item

  I need help trying to access an email box using msal
Posted by: FireStrike - Sep-12-2022, 09:10 PM - Forum: General Coding Help - No Replies

I am fairly new to python. I have been working on this for a few weeks. A previous employee used basic authentication to access email on our exchang..... More

Print this item

  [split] Please help with menu system
Posted by: dvejsa - Sep-12-2022, 07:47 PM - Forum: General Coding Help - Replies (4)

Yo guys,

I have come quite a bit in coding the crap of this menu but now im kinda stuck! :(
I wonder if there is anyone here that might help me ou..... More

Print this item

  Breaking Change for Python 3.7 - 3.12
Posted by: DeaD_EyE - Sep-12-2022, 05:35 PM - Forum: News and Discussions - Replies (9)

Breaking Change for Python 3.7 - 3.12

Since Python 3.10.7 a breaking change were i..... More

Print this item

  Sorting a dictionary
Posted by: v_mn - Sep-12-2022, 05:08 PM - Forum: General Coding Help - Replies (2)

I have a dictionary like:
[python]dic = {0: [('key1', 0.061),
('key2', 0.034),
('key3', 0.046),
('key4', 0.0593),
('key5', 0.091)],
1: ..... More

Print this item

  [SOLVED]PyQt5 tutorial
Posted by: Barrowman - Sep-12-2022, 04:06 PM - Forum: GUI - Replies (9)

I am trying to see if I want to use PyQt5 and am working my way through some tutorials. I haven't got very far yet.
This one does not show the toolti..... More

Print this item

  QAction bold part of the string argument
Posted by: malonn - Sep-12-2022, 12:58 PM - Forum: GUI - Replies (4)

My knowledge of PyQt6 is limited. I can't figure how to bold part of a string passed to a QAction. Other widgets support rich text, so it's easy wit..... More

Print this item

  precision & recall
Posted by: gracenz - Sep-12-2022, 12:42 PM - Forum: Data Science - Replies (1)

Hi all.

There are tons of examples about precision and recall online.
But I have difficulty explaining by connecting both metrics to the use case...... More

Print this item

  PyQt6 QAction with icon and string
Posted by: malonn - Sep-12-2022, 11:26 AM - Forum: GUI - Replies (2)

I cannot get a QAction initialized with a icon to show the text/string it's supposed to. Here's what I have (simple):
[python]write = QIcon('./imag..... More

Print this item

  PIL Image im.show() no show!
Posted by: Pedroski55 - Sep-12-2022, 09:17 AM - Forum: General Coding Help - Replies (2)

I had this problem before, but when I moved to a virtual environment, it went away.

Now, I can't do img.show() in either of my VENVs nor outside of..... More


Attached Files

Thumbnail(s)
   
Print this item

  Need Help: Convert .pcl file to .pdf file
Posted by: ManuRaval - Sep-12-2022, 06:01 AM - Forum: General Coding Help - Replies (6)

I need your help to know how to convert .pcl file to .pdf using python code. Can you please suggest the python library or code to convert .pcl file to..... More

Print this item

  Python crawler reports errors for some Chinese characters
Posted by: yliu315 - Sep-11-2022, 06:17 PM - Forum: Web Scraping & Web Development - No Replies

I have a python crawler that downloads Baidu index data for the search keywords I provide. It works for most Chinese characters. When it comes to some..... More

Print this item

  Folding in ATOM
Posted by: XavierPlatinum - Sep-11-2022, 05:34 PM - Forum: General Coding Help - Replies (5)

All of a sudden the folding doesn't work right in ATOM. I must have hit something or a hotkey I didn't mean to. Some things fold and others don't. ..... More

Print this item

  Add one to binary string
Posted by: uwl - Sep-11-2022, 04:25 PM - Forum: General Coding Help - Replies (2)

I have a string with the value '0101', it is a binary number. I wish to add one bit to it in order to obtain '0110'. Is someone able to help me accomp..... More

Print this item

  Need Help: FileNotFoundError:[Errno 2] No such file or directory
Posted by: python202209 - Sep-11-2022, 03:21 PM - Forum: General Coding Help - Replies (5)

I save a txt file with name 1pytest.txt and python the codes as a python file with name 1py.py in the same folder c:\Users\tiger\Downloads\

[python..... More


Attached Files

Thumbnail(s)
       
Print this item

  Word game revisited
Posted by: menator01 - Sep-11-2022, 07:42 AM - Forum: Code sharing - Replies (1)

hangman/word guessing game with tkinter

words.txt:
https://my-python.org/files/python/words.txt

[python]
#! /usr/bin/env python3
import rando..... More

Print this item

  (python) Can i get some help fixing a English to Morse translator? Pls
Posted by: AlexPython - Sep-11-2022, 04:40 AM - Forum: General Coding Help - Replies (8)

The problem that I have is that when I type a message for example (hello) instead of only translating those words the program would translate from the..... More

Print this item

  Help on ModuleNotFoundError
Posted by: JonWayn - Sep-11-2022, 03:45 AM - Forum: General Coding Help - No Replies

I cant seem to get import commands to work unless I'm working from the same folder as the file I want to import. What is puzzling is that sys.path lis..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 6 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 9 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578677
  Tutorial Requ... 509075
  Web Scraping ... 441835
  Newbie with P... 385787
  New Users Int... 375033
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 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Cristiano Today
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday

User Panel Messages

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