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,779
» Latest member: Dinardealing
» Forum threads: 37,689
» Forum posts: 171,310

Full Statistics

Online Users
There are currently 402 online users.
» 2 Member(s) | 392 Guest(s)
Baidu, Yandex, Google, Applebot, Facebook, AOL, snippsat, PyDev

Latest Threads
Free hosting
Forum: Bar
Last Post: Bronjer
5 minutes ago
» Replies: 2
» Views: 573
Help with graceful shutdo...
Forum: General Coding Help
Last Post: Larz60+
36 minutes ago
» Replies: 1
» Views: 59
Random student selection ...
Forum: General Coding Help
Last Post: Gribouillis
4 hours ago
» Replies: 3
» Views: 135
Code
Forum: General Coding Help
Last Post: LucieM
5 hours ago
» Replies: 4
» Views: 84,367
Using PyTorch to implemen...
Forum: News and Discussions
Last Post: AdamHensley
Yesterday, 09:45 PM
» Replies: 2
» Views: 128
positioning the laser
Forum: Game Development
Last Post: deanhystad
Yesterday, 07:28 PM
» Replies: 5
» Views: 366
keeping logs for every su...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 06:27 PM
» Replies: 5
» Views: 159
Tkinter weather app
Forum: Code sharing
Last Post: menator01
Yesterday, 05:17 PM
» Replies: 0
» Views: 66
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Hichem
Yesterday, 01:53 PM
» Replies: 3
» Views: 147
FastAPI returns null
Forum: Web Scraping & Web Development
Last Post: phpman88
Yesterday, 01:00 PM
» Replies: 2
» Views: 132

 
  Create new dictionary
Posted by: angus1964 - May-06-2022, 07:05 AM - Forum: General Coding Help - Replies (6)

If I have the following two dictionaries.

[python]person1 = {
"name" : "fred"
"age" : 31
}

person2 = {
"name" : "bob"
"age..... More

Print this item

  Create new dictionary
Posted by: angus1964 - May-06-2022, 07:05 AM - Forum: General Coding Help - Replies (2)

If I have the following two dictionaries.

[python]person1 = {
"name" : "fred"
"age" : 31
}

person2 = {
"name" : "bob"
"age..... More

Print this item

  please help me with my django website?
Posted by: MetsxxFan01 - May-05-2022, 11:38 PM - Forum: Web Scraping & Web Development - No Replies

http://metsxxfan01.pythonanywhere.com/

i don't know why it's not working

don't worry i fixed it

Print this item

  Trying to delete rows above a specific datetime value
Posted by: cubangt - May-05-2022, 09:45 PM - Forum: General Coding Help - Replies (19)

So i have a csv file, and the data is structured like this

2022-04-25, 7:06 AM, bla bla bla
2022-04-25, 7:07 AM, ha ha ha
2022-04-25, 7:08 AM, ha..... More

Print this item

Question Change elements of array based on position of input data
Posted by: Cola_Reb - May-05-2022, 02:01 PM - Forum: General Coding Help - Replies (6)

Hey everyone, hope you are doing great these days. I have a difficult problem with my data processing and hope you could help me:

I have some input d..... More

Print this item

  Python Has Major Problems as Language
Posted by: Dave - May-05-2022, 01:48 PM - Forum: News and Discussions - Replies (13)

I will apologize ahead of time here. Python is great, and my preferred language, but it needs to have basic flaws fixed:

1.)Some variables are pass..... More

Print this item

  Adding row to df with df.loc[len(df.index)]
Posted by: Mark17 - May-05-2022, 01:35 PM - Forum: General Coding Help - Replies (2)

This works to add a list a as a new (last) row of a dataframe df:

df.loc[len(df.index)] = a
len(df.index) is an integer, ri..... More

Print this item

  Make console show after script was built with Pyinstaller --NOCONSOLE?
Posted by: H84Gabor - May-05-2022, 12:32 PM - Forum: General Coding Help - No Replies

Hi,

I'd be looking for a way to make the console appear after I build the script with pyinstaller using --NOCONSOLE. In most cases I do not need th..... More

Print this item

  Python Anytree - Is not of type 'NodeMixin' error
Posted by: georgebijum - May-05-2022, 09:46 AM - Forum: General Coding Help - Replies (3)

I am trying to build a Hierarchy from the below csv data:

Child,Parent,IsActive
11074165,11018432,NO
11094122,11033371,NO
11020499,11018277,NO
..... More

Print this item

  ModuleNotFoundError: No module named '_struct' when starting pip3
Posted by: yuhuihu - May-05-2022, 04:41 AM - Forum: General Coding Help - No Replies

My OS environment is openSUSE Tumbleweed.

I cloned the latest Python code from git.
[code]
git clone -b main --single-branch [email protected]:pyt..... More

Print this item

  how to populate a dataframe thru line iteration ?
Posted by: knob - May-05-2022, 12:48 AM - Forum: General Coding Help - No Replies

Good afternoon !
I need some help to approach this problem using python.
I'm currently processing a big text file, line by line.
During this itera..... More

Print this item

  NameError: name 'hash_value_x_t' is not defined
Posted by: Anldra12 - May-05-2022, 12:40 AM - Forum: General Coding Help - Replies (5)

Why happen the name hash_value_x_t not define
[python]def setup():
global hash_value_x_t
"""
Generates public key and master secr..... More

Print this item

  Why is copying and pasting a block now broken?
Posted by: WagmoreBarkless - May-04-2022, 11:36 PM - Forum: General Coding Help - Replies (2)

This is trivial, but... Wall

Henceforth, if I had a block of code:

code line 1
code line 2
code line 3
code line 4
..... More

Print this item

  Why is copying and pasting a block now broken?
Posted by: WagmoreBarkless - May-04-2022, 11:36 PM - Forum: General Coding Help - Replies (1)

This is trivial, but... Wall

Henceforth, if I had a block of code:

code line 1
code line 2
code line 3
code line 4
..... More

Print this item

  How to remove extra space from output list?
Posted by: longmen - May-04-2022, 09:04 PM - Forum: Homework - Replies (3)

Hi,

I have this input

P (0, 2,+1) (2, 0, -1) (0, 4,+1) (4, 0, -1)
and I would like to have it printed out this way [python][(0, 2..... More

Print this item

Lightbulb Code is Working As-Is, Looking for Pointers to Improve
Posted by: ki5nyz - May-04-2022, 08:40 PM - Forum: Code Review - Replies (4)

Raspbian10 (Buster) (Pi-Star image 4.1.6)
Python 2.7.16
My script is working properly, other than I still need to figure out how to set the callsign..... More

Print this item

  TypeError: 'dict_items' object does not support indexingw
Posted by: Skaperen - May-04-2022, 04:42 PM - Forum: News and Discussions - Replies (3)

why does 'dict_items' not support indexing? this is the object type you get from dict.items(). shouldn't it interface like a tuple?

Print this item

  Alarm system with state, class, enum.
Posted by: Frankduc - May-04-2022, 01:26 PM - Forum: General Coding Help - No Replies

Hello,

I have this assigment to do. An interface for an alarm system. I came up with this code at first.

[python]from time import sleep
import..... More

Print this item

  Json Parsing
Posted by: sshree43 - May-04-2022, 12:26 PM - Forum: General Coding Help - Replies (5)

Hi Expert,

i wanted to extract below objects from json file, (valueObject,valueString)

[python]"analyzeResult": {

"documentResults": [
..... More

Print this item

  Python Sqlite
Posted by: georgebijum - May-04-2022, 10:12 AM - Forum: General Coding Help - No Replies

Hi ,

I am using the sqlite3 package in python. I push data to Sqlite table using to_sql function and is then querying data from multiple tables as..... More

Print this item

  canvas size
Posted by: DPaul - May-04-2022, 07:23 AM - Forum: GUI - Replies (2)

Hi,
I have an app with a large canvas, showing images.
The canvas is configured:
[python]tifCanvas = Canvas(root, width = 1200, height = 950, relie..... More

Print this item

Question Can you put encoded strings into .txt files?
Posted by: Alivegamer - May-04-2022, 12:50 AM - Forum: General Coding Help - No Replies

I have been trying to encode a text and then put it into a txt file but it doesn't show correctly.
When it's in the variable : b'\xff\xfe\x00\x00b\x0..... More

Print this item

  Quick question/help regarding my variable
Posted by: Extra - May-04-2022, 12:41 AM - Forum: General Coding Help - Replies (5)

Hello,

My sellPrice variable won't work because it's taking price as a string and trying to multiply it to a number.

[error]
File "ListTest.py",..... More

Print this item

  If/elif help
Posted by: stupidanlearning - May-03-2022, 10:58 PM - Forum: General Coding Help - Replies (5)

Hello all! So I am starting to mess around with python, it's the first language I am learning, I am also learning independently.

I decided to try ..... More

Print this item

  validate the existing value and change the series
Posted by: datahub - May-03-2022, 08:00 PM - Forum: Data Science - No Replies

Hello Everyone.

I am new to the Python and this Forum. I have the requirement to generate the new set of dataset

Source Dataset

ID ..... More

Print this item

  can anyone train me to get a python job?
Posted by: MetsxxFan01 - May-03-2022, 07:21 PM - Forum: Jobs - No Replies

i'm a beginner when it comes to learning python. maybe you could train me through video chat. and maybe the job could be remote or work from home

Print this item

  inset countdown in panel
Posted by: Frankduc - May-03-2022, 06:26 PM - Forum: Game Development - Replies (6)

i am trying to create a countdown clock below the numbers.
I am king of stuck to how insert the timer in my actual panel without creating a new panel...... More

Print this item

  How to keep columns header on excel without change after export data to excel file?
Posted by: ahmedbarbary - May-03-2022, 05:46 PM - Forum: General Coding Help - No Replies

I work on sql server 2017 I run script depend on python language v 3.10 .

I need to export data to excel fileStudentExport.xlsx already exist and k..... More

Print this item

  how to mouse click a specific item in pygame?
Posted by: Frankduc - May-03-2022, 02:24 PM - Forum: General Coding Help - Replies (5)

hello,

I want to mouse click a specific item.
When you click Activé which is button_A this line appear: img = font.render("Veuillez entrer votre c..... More

Print this item

  Windows install does not create .exe, shortcut,etc to open
Posted by: hammer - May-03-2022, 12:56 PM - Forum: General Coding Help - Replies (4)

I used pynsist in linux to create an installer for windows of my python app.-no errors/warnings
When I looked into the nsis file it created, there w..... More

Print this item

Question How can I import a variable from another script without executing it
Posted by: ThomasFab - May-03-2022, 08:57 AM - Forum: General Coding Help - Replies (12)

I have a little beginner issue doing imports between scripts, maybe someone can help? Blush

I wrote 2 Modules:

[b]- B01_Import_CSV_V1.py[/..... More

Print this item

  Can't write to .txt after opening websocket
Posted by: gerald - May-03-2022, 03:40 AM - Forum: General Coding Help - Replies (5)

Hi everyone,

When I write to a txt file with this code i get no errors. However after I open a websocket I get a 'type error'
The code I use is:

[py..... More

Print this item

  IndexError: list index out of range
Posted by: Anldra12 - May-03-2022, 01:32 AM - Forum: General Coding Help - Replies (2)

A common error but i don't know the reason why list index out of range
[python]def runScheme(t_str, n_str, k, q, Field):
x_subi = [0]
..... More

Print this item

  can you please help me with this python code
Posted by: MetsxxFan01 - May-02-2022, 08:07 PM - Forum: General Coding Help - Replies (5)

[python]import json

try:
with (open("log.txt")) as file:
data = json.load(file)

print("data has been successfully retrieve..... More

Print this item

  pywin32: Outlook connection ends with 'operation aborted' on one machine
Posted by: tstone - May-02-2022, 05:13 PM - Forum: General Coding Help - No Replies

Hello Python Community!

I'm trying to create an MD5 hash of email contents in order to be able to identify it by its contents afterwards.
Also, th..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Free hosting 5 minutes ago Sowmya Bronjer Bar
  Help with graceful shutdo... 36 minutes ago sawtooth500 Larz60+ General Codin...
  Random student selection ... 4 hours ago esahan Gribouillis General Codin...
  Code 5 hours ago StoneCherry0119 LucieM General Codin...
  Using PyTorch to implemen... Yesterday, 21:45 emmanuelkattouganda AdamHensley News and Disc...
  [PyGame] positioning the ... Yesterday, 19:28 flash77 deanhystad Game Developm...
  keeping logs for every su... Yesterday, 18:27 robertkwild snippsat General Codin...
  Tkinter weather app Yesterday, 17:17 menator01 menator01 Code sharing
  Trouble with Average Calc... Yesterday, 13:53 autodecay Hichem General Codin...
  FastAPI returns null Yesterday, 13:00 phpman88 phpman88 Web Scraping ...
  Merge Python code with Mi... Yesterday, 12:36 adzy DeaD_EyE General Codin...
Most views
  The best Prog... 543833
  Web Scraping ... 411391
  Tutorial Requ... 393210
  Newbie with P... 332646
  Thread remain... 312520
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 352
deanhystad 315
Most replies
  New Users Int... 434
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11913
buran 8089
snippsat 7161
deanhystad 6388
metulburr 5150
Top referrers
Googlepro 21
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Dinardealing Today
LucieM Today
philrun2 Yesterday
Silvanos Yesterday
esahan Yesterday

User Panel Messages

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