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,799
» Latest member: RosieBartlett
» Forum threads: 37,494
» Forum posts: 170,348

Full Statistics

Online Users
There are currently 364 online users.
» 1 Member(s) | 356 Guest(s)
Bing, Facebook, Google, Baidu, Yandex, Apple, menator01

Latest Threads
Pygame freezes after cert...
Forum: Game Development
Last Post: RosieBartlett
33 minutes ago
» Replies: 3
» Views: 5,421
AWS Boto3 - objects funct...
Forum: General Coding Help
Last Post: PythonDialer
2 hours ago
» Replies: 0
» Views: 33
How returns behave in a f...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 1
» Views: 83
Can you explain the strin...
Forum: General Coding Help
Last Post: Pedroski55
5 hours ago
» Replies: 3
» Views: 98
Parsing "aTimeLogger" And...
Forum: Data Science
Last Post: Drone4four
6 hours ago
» Replies: 3
» Views: 274
Help needed - UN voting r...
Forum: General Coding Help
Last Post: Pedroski55
7 hours ago
» Replies: 2
» Views: 121
Reading Baseball Box Scor...
Forum: Homework
Last Post: tommythumb
7 hours ago
» Replies: 2
» Views: 178
My first python game : Ti...
Forum: Game Development
Last Post: ebn852_pan
8 hours ago
» Replies: 1
» Views: 59
collections.Counter()
Forum: Code sharing
Last Post: ebn852_pan
Yesterday, 10:51 PM
» Replies: 2
» Views: 295
compare parts of a 2-tupl...
Forum: General Coding Help
Last Post: Skaperen
Yesterday, 08:52 PM
» Replies: 0
» Views: 91

 
  xml indent SubElements (wrapping) with multiple strings
Posted by: ctrldan - Jun-07-2023, 02:09 PM - Forum: General Coding Help - Replies (2)

(I updated the code with comments)
Hi everyone, I am creating an xml file with python using xml.etree.ElementTree. In input I have a docx, where the..... More


Attached Files

.py   xml3.py (Size: 5.05 KB / Downloads: 96)
.docx   TEST.docx (Size: 13.12 KB / Downloads: 89)
.py   xml3_commented.py (Size: 7.6 KB / Downloads: 88)
Print this item

  Calling a function (which accesses a library) from another file
Posted by: mouse9095 - Jun-07-2023, 04:04 AM - Forum: General Coding Help - Replies (4)

Hello,

I am a new Python user and am trying to create some functions I can use for my own convenience. For now, I am trying to keep these in a sep..... More

Print this item

  Scrape table from multiple pages
Posted by: Nhattanktnn - Jun-07-2023, 12:51 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi,
Please help me scrape table from multiple pages in this url: https://s.cafef.vn/lich-su-kien.chn
Many thanks!

Print this item

  Automate Word snippets
Posted by: PHbench - Jun-06-2023, 06:59 PM - Forum: General Coding Help - No Replies

I want to use MS Word to write paragraphs/snippets/parts and store them with all the word formatting. I later would want to merge them into one Word d..... More

Print this item

  Pygame in 90 Minutes - For Beginners syntax issues
Posted by: GoldenHarvey - Jun-06-2023, 06:21 PM - Forum: Game Development - Replies (6)

I am watching and copying the methods of how to make a game on Pygame via the video "Pygame in 90 Minutes - For Beginners" by Tech with Tim.

I wro..... More

Print this item

  How i can use categories with folder?
Posted by: AnonymerAlias - Jun-06-2023, 03:17 PM - Forum: General Coding Help - Replies (2)

Hello,

I want to know how can I import a subfolder?

I have tried with:
from test.test2 import file

but this isn't works.

Best regards

Print this item

  [SOLVED] Why is this asyncio task blocking?
Posted by: SecureCoop - Jun-06-2023, 02:21 PM - Forum: General Coding Help - Replies (1)

This is my first time working with asyncio and I can't understand why this task is blocking. Everything is awaited that should be awaited. Please help..... More

Print this item

  Help with pyinstaller "No module named"
Posted by: korenron - Jun-06-2023, 12:35 PM - Forum: General Coding Help - Replies (9)

Hello,
I'm trying to create a EXE file from my (Working) python code.

When I try to run the exe file I get the error:
[python]Traceback (most re..... More

Print this item

  pyarrow error when importing pandas
Posted by: sravva - Jun-06-2023, 11:20 AM - Forum: General Coding Help - Replies (1)

I am trying to import pandas but I keep getting an error relating to pyarrow. It worked fine before, but started giving me the error once I installed/..... More


Attached Files

Thumbnail(s)
   
Print this item

  Set permnission with makedirs
Posted by: SpongeB0B - Jun-06-2023, 11:17 AM - Forum: General Coding Help - Replies (7)

Hi everyone,

I would like to set the permission when using

from os import makedirs
I would like to have (for a directory) ..... More

Print this item

Lightbulb Review for my Fibonacci sequence, please. (´。• ω •。`)
Posted by: Carmazum - Jun-06-2023, 03:26 AM - Forum: Code Review - Replies (6)

Salutations, Pythonistas! python
I hope you are all well and that your families and friends are doing well. ヽ(・∀・)ノ

I have developed a simpl..... More

Print this item

  Why am I getting this error?
Posted by: the_jl_zone - Jun-05-2023, 11:06 PM - Forum: General Coding Help - Replies (3)

I'm trying to learn how to use Python classes using this one as an example:

[python]
class ExampleClass:
... def __init__(self,example_parame..... More

Print this item

  how to return a reference to an object?
Posted by: Skaperen - Jun-05-2023, 11:00 PM - Forum: General Coding Help - Replies (8)

i have a collection of object references in a dict inside a function. i want to have a function that can use give arguments, find the object, and ret..... More

Print this item

  PowerShell & Python
Posted by: deep_logic - Jun-05-2023, 09:29 PM - Forum: General Coding Help - Replies (2)

Hi all,
I’m trying to run simple python scripts with PowerShell. I can run my scripts in .cmd without a hitch. The path looks proper. I opened PowerS..... More

Print this item

  what stand-alone python-aware open-source editors are around?
Posted by: Skaperen - Jun-05-2023, 01:57 AM - Forum: News and Discussions - Replies (14)

what stand-alone python-aware open-source editors are around? by stand-alone i mean not a part of any development kit or package. by python-aware i ..... More

Print this item

  Use IDLE to compose and test only
Posted by: SomebodySmart - Jun-04-2023, 11:56 AM - Forum: News and Discussions - Replies (1)

Just for the benefit of the ones who don't realize it:

I use IDLE and it is an excellent way to perfect and de-bug code. It is a good way to test p..... More

Print this item

  can webflow be used as a front end?
Posted by: LandonJPGinn - Jun-04-2023, 07:01 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello,
I am looking to try and develop a webapp but I am new to branching outside of python.
Ive done a number of tutorials when it comes to flask..... More

Print this item

  pipenv, is it still useful?
Posted by: LandonJPGinn - Jun-04-2023, 06:55 AM - Forum: General Coding Help - Replies (3)

Hello,
new to the forum but long time python user.
I got myself into the habit of using pipenv a lot, but I always run into issues when it comes..... More

Print this item

  entry widget
Posted by: DPaul - Jun-04-2023, 05:48 AM - Forum: GUI - Replies (5)

Hi, a cosmetic question.
I have an app with some entry boxes, nothing special.
[python]entryKl = Entry(frame1, font=myFont,bg='lightblue')
entryKl.pac..... More

Print this item

  variables in f-string
Posted by: Skaperen - Jun-04-2023, 01:09 AM - Forum: News and Discussions - Replies (3)

is it OK to set variables in an f-string? i need to call an expensive (e.g. slow) function to get a value that is needed in 3 places in an f-string a..... More

Print this item

  Do you feel the Mojo
Posted by: snippsat - Jun-03-2023, 11:25 PM - Forum: News and Discussions - Replies (1)

Mojo 🔥 — a new programming language
So a interesting approach,and with a performance boost that can be large...... More

Print this item

  Add two resultant fields from python lambda function
Posted by: klllmmm - Jun-03-2023, 11:03 AM - Forum: General Coding Help - Replies (4)

I have a dataframe where i would like to add two fields at once based on a condition. I can achieve this by defining a function.

[python]

impor..... More

Print this item

  How to search for a byte hex pattern with Joker in FIile
Posted by: lastyle - Jun-03-2023, 05:01 AM - Forum: Data Science - Replies (1)

Hello all

i am searching for a solution to parse a file for a byte pattern with jokers inside a file, and if found to print the position ,or if mu..... More

Print this item

  3D points in 2D coordinates
Posted by: sunath - Jun-03-2023, 01:29 AM - Forum: General Coding Help - Replies (7)

Dear All,

I have 3D coordinates of 300 points. I would like to show my data as a series of 2D xy scatter plot at specific interval of z plane. How ..... More

Print this item

  Data structure question
Posted by: standenman - Jun-02-2023, 09:54 PM - Forum: Data Science - Replies (1)

I am creating an app that will take a pdf that represents a set of medical treatment records for a given patient. I want to submit the text to proces..... More

Print this item

  Python to 10-year-olds
Posted by: Krayna - Jun-02-2023, 10:26 AM - Forum: News and Discussions - Replies (4)

Hi there,

I'm teaching a couple of kids Python an hour a week. When I started we would do simple little exercises like 'guess the number' or even ..... More

Print this item

  Get numpy ceil and floor value for nearest two decimals
Posted by: klllmmm - Jun-02-2023, 05:29 AM - Forum: General Coding Help - Replies (4)

I'm trying to get ceiling value of the input for two decimals.


[python]
import numpy as np
a = np.array([-1.784, -1.5888, -0.24444, 0.25555, 1...... More

Print this item

  WING PYTHON IDE HELP!!!!
Posted by: nma236 - Jun-02-2023, 04:18 AM - Forum: General Coding Help - Replies (5)

I keep getting this error on Wing Python IDE.

[error]Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]
Type..... More

Print this item

  Request doesnt work?
Posted by: Sdrawkcab - Jun-02-2023, 02:09 AM - Forum: Web Scraping & Web Development - Replies (10)

I'm new here and to python so any help would be greatly appreciated.



[python]import requests

response = requests.get("https://www.google.co..... More

Print this item

  Filling NaNs in a financial dataset
Posted by: larzz - Jun-01-2023, 09:40 PM - Forum: Data Science - Replies (11)

I have a financial dataframe consisting of 500 different columns. I have categorical and informational columns (in this case, the year, the quarter an..... More

Print this item

  What software to use?
Posted by: pickledrick - Jun-01-2023, 08:24 PM - Forum: General Coding Help - Replies (3)

Hi
I have built a fully functioning global supply chain management system in google sheets.

I want to turn this into an online webapp where I can ..... More

Print this item

  Processing Files that are not in use
Posted by: randywberry - Jun-01-2023, 07:52 PM - Forum: General Coding Help - Replies (3)

I am processing files, but need to be sure there are no other apps currently using the file which could change the data.
I have searched the internet ..... More

Print this item

  Help using a dynamic array excel formula with XLWings
Posted by: FXMonkey - Jun-01-2023, 07:06 PM - Forum: General Coding Help - Replies (2)

I am trying to populate a cell with a dynamic array formula using xlwings but each time I try the formula either ends up with @ after the = or the for..... More

Print this item

  issue with converting a scientific notation to standard notation
Posted by: thomaswfirth - Jun-01-2023, 03:52 PM - Forum: General Coding Help - Replies (4)

I am reading the value from a DMM and the returned number is in Scientific notation. When I try to convert that number to get a decimal number, I get ..... More

Print this item

  SQL question
Posted by: DPaul - Jun-01-2023, 03:28 PM - Forum: Bar - Replies (4)

Hi,
I have data in an FTS5 sql table, but you can sql update it like any other table. (but no field types)
Say the table is called "abc", and has 3 fi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Pygame freezes after cert... 33 minutes ago GJG RosieBartlett Game Developm...
  AWS Boto3 - objects funct... 2 hours ago PythonDialer PythonDialer General Codin...
  How returns behave in a f... 5 hours ago khasbay deanhystad General Codin...
  Can you explain the strin... 5 hours ago ebn852_pan Pedroski55 General Codin...
  Parsing "aTimeLogger" And... 6 hours ago Drone4four Drone4four Data Science
  Help needed - UN voting r... 7 hours ago Mardy Pedroski55 General Codin...
  Reading Baseball Box Scor... 7 hours ago tommythumb tommythumb Homework
  My first python game : Ti... 8 hours ago ForsakenDusk ebn852_pan Game Developm...
  collections.Counter() Yesterday, 22:51 pynerds ebn852_pan Code sharing
  compare parts of a 2-tupl... Yesterday, 20:52 Skaperen Skaperen General Codin...
  os.listdir() and follow_s... Yesterday, 19:45 Skaperen Gribouillis General Codin...
Most views
  The best Prog... 458788
  Web Scraping ... 339741
  Tutorial Requ... 329479
  Newbie with P... 277380
  Thread remain... 262057
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 313
Most replies
  New Users Int... 432
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11883
buran 8091
snippsat 7107
deanhystad 6267
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
RosieBartlett Today
PythonDialer Today
manojgiws81 Today
khasbay Yesterday
crafcik612 Yesterday

User Panel Messages

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