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,384
» Latest member: Michaelhauct
» Forum threads: 38,820
» Forum posts: 176,011

Full Statistics

Online Users
There are currently 50 online users.
» 1 Member(s) | 44 Guest(s)
Bing, Google, AOL, Apple, snippsat

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
20 minutes ago
» Replies: 4
» Views: 95
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Amowtonyl
Today, 10:34 AM
» Replies: 4
» Views: 9,838
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 07:58 AM
» Replies: 2
» Views: 120
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 69
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 118
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,284
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 91
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 748
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 136

 
  I use VsCode with Python and it currently won't let me run any code
Posted by: NordicMonkey - Sep-18-2022, 02:46 PM - Forum: General Coding Help - Replies (2)

I'm currently starting with Python, I use VsCode; Hadn't had any problems until yesterday.

Basically the problem is that I can execute individual l..... More


Attached Files

Thumbnail(s)
                   
Print this item

  MatplotibTicks every 24 hours
Posted by: TamP - Sep-18-2022, 10:48 AM - Forum: General Coding Help - Replies (4)

My code displays temperatures imported from an excel sheet.
The graph works as I want but I cannot see how to show an xtick every 24 hours rather tha..... More

Print this item

  Reminder that pip runs arbitrary code
Posted by: stevendaprano - Sep-18-2022, 03:45 AM - Forum: News and Discussions - No Replies

This is just a reminder that not only pip install but also pip dryrun will ..... More

Print this item

  Question: print issue
Posted by: python202209 - Sep-17-2022, 06:45 PM - Forum: General Coding Help - Replies (3)

Ask a silly question:

Why I got SyntaxError for print(1,012,000) but not print(1,000,000)?

See attached screenshot.


Attached Files

Thumbnail(s)
   
Print this item

  QWidgetAction of QFrame not showing in menu
Posted by: malonn - Sep-17-2022, 04:34 PM - Forum: GUI - Replies (4)

I am trying to set up a QPushButton with menu that has a horizontal frame in it, but it won't show. The button menu has several labe..... More

Print this item

  Coding Eror
Posted by: Led_Zeppelin - Sep-17-2022, 03:25 PM - Forum: General Coding Help - Replies (3)

The following Python code generates an error:

[code]
q = image_data_org.loc[image_data_org.loc['machine_status']==0]['time_period']
p = image_dat..... More


Attached Files

Thumbnail(s)
   
Print this item

  Merged multiple csv to one
Posted by: SamLiu - Sep-17-2022, 02:19 PM - Forum: General Coding Help - Replies (7)

Hi all,
I try to merge multiple csv to one, but header with all CSVs,how to config only write once,other thing is how to ignore content of snapshot,t..... More

Print this item

  pdf lookalikes
Posted by: DPaul - Sep-17-2022, 07:15 AM - Forum: Bar - No Replies

Hi,
Some service-minded villages have made their 1000s of prayer cards available to the public as pdfs.
Or so it seems, because the thing's extension..... More

Print this item

  MadLib game
Posted by: dgizzly - Sep-16-2022, 08:44 PM - Forum: Homework - Replies (2)

I am in the pursuit of becoming an IT for cyber security and I have this online class that I'm pretty much learning on my own. I am stuck on the part ..... More

Print this item

  What is a circular import? asked by a newbie of newbies
Posted by: ineuw - Sep-16-2022, 07:19 PM - Forum: General Coding Help - Replies (1)

Using Linux Mint Cinnamon 21.0, I want to parse my bookmarks.html file with a script from https://pypi.org/project/bookmarks-parser/.

[python]
#!..... More

Print this item

  random.choices and random.sample
Posted by: azizrasul - Sep-16-2022, 05:50 PM - Forum: General Coding Help - Replies (5)

What is the difference between random.choices and random.sample?

Print this item

  Can't import csv data
Posted by: JonWayn - Sep-16-2022, 10:43 AM - Forum: General Coding Help - Replies (4)

in the code below, page is the webpage response from Playwright for what it's worth:
The csv file gets created ok and looks good as far as I can tell..... More

Print this item

  Memory Error While generating cheksum no
Posted by: mg24 - Sep-16-2022, 12:21 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I am trying to create checksum no , getting error memory error.
for syntax====> lines = f.read()

file size of CSV is 60gb , ho..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 20 minutes ago eedjsa bowlofred General Codin...
  Lottery generator (beginn... Today, 10:34 Hullari Amowtonyl General Codin...
  [split] How to ask Smart ... Yesterday, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580324
  Tutorial Requ... 518776
  Web Scraping ... 442752
  Newbie with P... 386936
  New Users Int... 385997
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Michaelhauct Today
eedjsa Today
byanfrances6176 Today
Amowtonyl Today
sofiadavis1840 Today

User Panel Messages

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