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,634
» Latest member: tonyblare
» Forum threads: 37,387
» Forum posts: 169,908

Full Statistics

Online Users
There are currently 389 online users.
» 0 Member(s) | 382 Guest(s)
Bing, Apple, Baidu, Google, Yandex, Facebook

Latest Threads
FutureWarning: The behavi...
Forum: General Coding Help
Last Post: sawtooth500
1 hour ago
» Replies: 14
» Views: 291
Loop through all files in...
Forum: General Coding Help
Last Post: FortuneCoins
7 hours ago
» Replies: 10
» Views: 257
defaultdict
Forum: Code sharing
Last Post: main
8 hours ago
» Replies: 0
» Views: 110
Right way to open files w...
Forum: General Coding Help
Last Post: snippsat
9 hours ago
» Replies: 2
» Views: 129
wrong entries in sqlite d...
Forum: General Coding Help
Last Post: epsilondatum
10 hours ago
» Replies: 2
» Views: 267
watchdog on_modified
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 03:09 PM
» Replies: 1
» Views: 100
Volume label
Forum: Bar
Last Post: DPaul
Yesterday, 02:23 PM
» Replies: 1
» Views: 86
TypeError: Diagram.render...
Forum: Code Review
Last Post: catherine
Yesterday, 11:37 AM
» Replies: 1
» Views: 77
match case
Forum: Code sharing
Last Post: DeaD_EyE
Yesterday, 09:53 AM
» Replies: 1
» Views: 128
Add NER output to pandas ...
Forum: Data Science
Last Post: dg3000
Apr-22-2024, 08:14 PM
» Replies: 0
» Views: 66

 
  Help needed for a program using loops
Posted by: PythonBoy - Sep-03-2023, 12:18 PM - Forum: Homework - Replies (5)

I got a homework to create a program whose output is like this:

*
**
***
****

I made use of for loop to make this program
My code:
[python]..... More

Print this item

  discrepancy with datetime with timezone
Posted by: XJia - Sep-03-2023, 05:52 AM - Forum: General Coding Help - Replies (3)

Can anyone please help explain about the following. why don't I get even numbers for the hours?

I'm running Python 3.10. The following is from ptpy..... More

Print this item

  'answers 2' is not defined on line 27
Posted by: 0814uu - Sep-02-2023, 09:58 PM - Forum: General Coding Help - Replies (4)

Hey, I'm doing a school project and I can't find my error on replit, could someone help me and correct it? Go easy on me as I just picked up coding ye..... More

Print this item

  How to do 100 runs simulation based on the current codes?
Posted by: dududada - Sep-02-2023, 08:18 PM - Forum: General Coding Help - Replies (6)

The current codes are already on the website: https://github.com/xunzheng/notears

linear.py allows me to run one-time simulation. https://github.com/..... More

Print this item

  Printing the variable from defined function
Posted by: jws - Sep-02-2023, 05:10 PM - Forum: General Coding Help - Replies (7)

Hi,

Quite new topython and this is a problem I have spent 1.5 hrs trying to work out, for context I wanted to define a function that would create a..... More

Print this item

  Unidecode issue
Posted by: DPaul - Sep-02-2023, 06:42 AM - Forum: Bar - Replies (5)

Hi,
In some pdfs I encounter references to the original parish register, like so: ref = ' RP 477; p. 148 r° '
I perform unidecode on all strings in ..... More

Print this item

  encode/decode to show correct country letters in a CTk combobox
Posted by: janeik - Sep-02-2023, 01:28 AM - Forum: General Coding Help - Replies (2)

hi.
I have a text file encoded utf-8
Reading it with i.e. notepad shows "sør-trøndelag"
Note the Norwegian character "ø"

Binary reading in Python, fr..... More


Attached Files

Thumbnail(s)
   
Print this item

  Why wont this path work one way, but will the other way?
Posted by: cubangt - Sep-01-2023, 01:04 PM - Forum: General Coding Help - Replies (2)

Im trying to run a python script using this as one of the paths to a text file that it needs in order to process

This wont work
[python]
\\server..... More

Print this item

  Cannot convert from timedelta64[ns] to timedelta64[h]
Posted by: NewBiee - Sep-01-2023, 06:29 AM - Forum: Data Science - Replies (1)

Hi,

I have this piece of code that used to work. I have upgraded Numpy and Pandas and now they don't seem to work.

[python] def astype(self, dty..... More

Print this item

  how to open a popup window in tkinter with entry,label and button
Posted by: lunacy90 - Aug-31-2023, 09:10 PM - Forum: General Coding Help - Replies (1)

I need to be able to open a pop up window with an Label, Entry and Button widgets. They have to be located from left to right (label/entry/button). I ..... More

Print this item

Question Web Scraping via Web App (Asking for Tips)
Posted by: MartinBecka - Aug-31-2023, 08:48 PM - Forum: Web Scraping & Web Development - No Replies

Hello, fellow programmers,

I am learning Python through working on personal projects and right now, I am trying to create web application product c..... More

Print this item

  Tkinter button images not showing up
Posted by: lunacy90 - Aug-31-2023, 05:06 PM - Forum: General Coding Help - Replies (7)

I have the following code



[python]
from tkinter import *
from tkinter import messagebox

def read_account_balance():
try:
wit..... More

Print this item

  Editing spreadsheet/csv
Posted by: BSDevo - Aug-31-2023, 04:15 PM - Forum: General Coding Help - Replies (6)

Hi, sorry if something wrong im new its my first post.
Im learning python but english is not my native language and i dont know how to properly put s..... More

Print this item

  Is it possible to extract 1 or 2 bits of data from MS project files?
Posted by: cubangt - Aug-31-2023, 03:03 PM - Forum: General Coding Help - Replies (8)

We have a weekly meeting with management to present current status on few projects that are going on.. Im looking to extract the % complete from each ..... More

Print this item

  FutureWarning: Logical ops (and, or, xor) between Pandas objects and dtype-less seque
Posted by: NewBiee - Aug-31-2023, 02:18 PM - Forum: Data Science - Replies (5)

I have had this method on my code, it's been working fine, but as of today my code fails on this method:

[python]def get_flags(series, flags, regex..... More

Print this item

  problem in import module from other folder
Posted by: akbarza - Aug-31-2023, 12:28 PM - Forum: General Coding Help - Replies (5)

hi
I typed this thread before, but my net was disconnected and I lost it.
by the pic : ..... More

Print this item

  A simple problem, how best to solve it?
Posted by: SuchUmami - Aug-31-2023, 10:22 AM - Forum: General Coding Help - Replies (2)

This seems quite simple compared to many problems I've had. However, I'm not finding an elegant solution at the moment.

I have two csv files and I'..... More

Print this item

  Task calendar problem
Posted by: humanical - Aug-30-2023, 07:50 PM - Forum: Homework - Replies (8)

Here is the task:
Analyzing weekends and holidays around New Year's and May 1st in Russia, the president of Flatlandia has concluded that the rest of..... More

Print this item

  Trying to debug segfault in ctypes binding to Fortran
Posted by: bthomas - Aug-30-2023, 07:30 PM - Forum: General Coding Help - Replies (1)

Hi,

I am just trying to learn creating Python bindings to legacy Fortran using the ctypes module. My code is segfaulting in the Fortran function in..... More

Print this item

  Python Mapped Strings
Posted by: edualfaia - Aug-30-2023, 04:25 PM - Forum: News and Discussions - Replies (12)

Hi experts
I have mapped, the strings below, the words that start win "-" with another string, for example "nrdbc" is equivalent to "n3DeleteBearerC..... More

Print this item

  textfile to customtkinter combobox
Posted by: janeik - Aug-30-2023, 01:49 PM - Forum: General Coding Help - Replies (6)

hello.

Goal: Insert list of country names, stored in a text file, into the combobox.
Idea, create a list of values-
Sadly, country names shows u..... More


Attached Files

.txt   inpland.txt (Size: 2.08 KB / Downloads: 79)
Print this item

Question in this code, I input Key_word, it can not find although all data was exact Help me!
Posted by: duchien04x4 - Aug-30-2023, 10:58 AM - Forum: General Coding Help - Replies (3)

[python]import requests
import tkinter as tk
from tkinter import filedialog
import re

# Thay thế các giá trị sau bằng thông tin thật của bạn
ac..... More


Attached Files

.txt   savecommentFACE.txt (Size: 2.19 KB / Downloads: 93)
Print this item

  A modernized magic trick
Posted by: Gribouillis - Aug-30-2023, 07:51 AM - Forum: Code sharing - No Replies

A few years ago, it occurred to me that if a Python instance obj had attributes 'spam' and 'eggs', ..... More

Print this item

  python Read each xlsx file and write it into csv with pipe delimiter
Posted by: mg24 - Aug-29-2023, 11:13 PM - Forum: General Coding Help - Replies (4)

Hi Team,

I am trying to Read xlsx file and I want to write it into CSV File with pipe delimited.all decimal values wanted to round up 6 decimal pla..... More

Print this item

  Need to replace a string with a file (HTML file)
Posted by: tester_V - Aug-29-2023, 09:17 PM - Forum: General Coding Help - Replies (1)

Greetings!
I need to send tons of emails, to do that I have to use an HTML file.
The string “ MessageBody” in the HTML file must be replaced with t..... More

Print this item

  Capturing BS4 values into DF and writing to CSV
Posted by: cubangt - Aug-29-2023, 07:52 PM - Forum: General Coding Help - Replies (18)

I have the below logic that im getting results from, but when righting to the csv, each data value is being written to row instead of collectively int..... More

Print this item

  Flask - use bootstrap styles in HTML
Posted by: Krayna - Aug-29-2023, 02:22 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi there
I'm new to Flask. I've created couple of apps following some tutorials. Now I'm working on my own project for work.

I noticed in the HTML f..... More

Print this item

  Python Online Compiler
Posted by: alexmaxwell1 - Aug-29-2023, 09:50 AM - Forum: News and Discussions - Replies (2)

Hi everyone,

If anyone is looking for a good Python online compiler to practice theirs's coding skills. I've been looking at a few different option..... More

Print this item

  Query database
Posted by: menator01 - Aug-29-2023, 08:14 AM - Forum: News and Discussions - No Replies

What would be a recommended amount of time to query a database to check for login status? I was thinking querying every five minutes.
Any and all com..... More

Print this item

  scammed through python keylogger
Posted by: Noq - Aug-28-2023, 08:04 PM - Forum: News and Discussions - Replies (12)

hello everyone, first of all, please don't judge me for what happened. I know myself that I am an idiot.

so, to keep it short, someone made me use ..... More

Print this item

  Current project - Simple tkinter login system
Posted by: menator01 - Aug-28-2023, 07:21 PM - Forum: Code sharing - Replies (3)

Just a simple login system. It's not complete, still have some details to work on and after maybe make a generic page class as I have some repeating c..... More

Print this item

  Starting and running .bat in background, tkinter in foreground
Posted by: ProfMeowintgon - Aug-28-2023, 11:49 AM - Forum: General Coding Help - Replies (9)

Hello,

as the title says, how can I achieve a (custom)tkinter window in the foreground (i.e. "maximized") and the cmd terminal which is started whe..... More

Print this item

Question bytes and strings
Posted by: Skaperen - Aug-28-2023, 02:58 AM - Forum: News and Discussions - No Replies

does anyone use the bytes type when dealing with ASCII characters, such as when the input provides the characters as bytes and/or (espec..... More

Print this item

  Installing Older Version Of Numpy & Pandas
Posted by: knight2000 - Aug-28-2023, 02:31 AM - Forum: General Coding Help - Replies (6)

Hi all,

I'm still pretty new to the world of Python. I'm using Pycharm and for the first time I'm trying to test a public project from Github. The..... More

Print this item

  Perform the same action in a browse game on multiple computers at the same time.
Posted by: learningpysh - Aug-28-2023, 12:49 AM - Forum: Networking - No Replies

I'm trying to develop an application split into two parts, server and client, that performs the same action on multiple devices at the same time. All ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  FutureWarning: The behavi... 1 hour ago sawtooth500 sawtooth500 General Codin...
  Loop through all files in... 7 hours ago Winfried FortuneCoins General Codin...
  defaultdict 8 hours ago main main Code sharing
  Right way to open files w... 9 hours ago Winfried snippsat General Codin...
  wrong entries in sqlite d... 10 hours ago epsilondatum epsilondatum General Codin...
  watchdog on_modified Yesterday, 15:09 CAD79 deanhystad General Codin...
  Volume label Yesterday, 14:23 DPaul DPaul Bar
  TypeError: Diagram.render... Yesterday, 11:37 sachin1361 catherine Code Review
  match case Yesterday, 09:53 main DeaD_EyE Code sharing
  Add NER output to pandas ... 04-22, 20:14 dg3000 dg3000 Data Science
  Made a discord bot game t... 04-22, 14:27 Dmcsdiscord Dmcsdiscord General Codin...
Most views
  The best Prog... 409020
  Web Scraping ... 300307
  Tutorial Requ... 290702
  Newbie with P... 249289
  Thread remain... 231276
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+ 11871
buran 8090
snippsat 7085
deanhystad 6212
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
tonyblare Yesterday
NsisongEkong Yesterday
TaylorPierce Yesterday
StegoDandy Yesterday
reynanvt Yesterday

User Panel Messages

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