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,658
» Latest member: mihir_patel535
» Forum threads: 37,402
» Forum posts: 169,975

Full Statistics

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

Latest Threads
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: snippsat
5 hours ago
» Replies: 8
» Views: 154
using mutable in function...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 4
» Views: 206
Why am I getting this err...
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 4
» Views: 110
Discord - Webcrapping fro...
Forum: Web Scraping & Web Development
Last Post: Tolska
10 hours ago
» Replies: 0
» Views: 47
Low code b2b e-commerce s...
Forum: Web Scraping & Web Development
Last Post: abdlwafitahiri
10 hours ago
» Replies: 2
» Views: 393
How to edit Tkinter Minim...
Forum: General Coding Help
Last Post: kucingkembar
11 hours ago
» Replies: 7
» Views: 142
TypeError: '>' not suppor...
Forum: Data Science
Last Post: Anouar
Today, 09:34 AM
» Replies: 0
» Views: 68
How To Make A PyQt5 Progr...
Forum: GUI
Last Post: menator01
Today, 02:18 AM
» Replies: 1
» Views: 136
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
Yesterday, 07:40 PM
» Replies: 0
» Views: 121
New on python. Needs help...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:47 PM
» Replies: 1
» Views: 134

 
  Fixed colum width for rowLabels i Matplotlib
Posted by: pandabay - Jun-10-2023, 03:40 PM - Forum: General Coding Help - No Replies

Is there a way to set a min-width or in general width value to the row label cells (r1, r2) in the following code?

[python]import numpy as np
impo..... More

Print this item

  I am trying to scrape data to broadcast it on Telegram
Posted by: BarryBoos - Jun-10-2023, 06:34 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi all, I am one day old in Python development. I am using AI which already got me much further than I have ever expected to get. I got the bot to wor..... More

Print this item

  boto3 - Error - TypeError: string indices must be integers
Posted by: kpatil - Jun-09-2023, 05:07 PM - Forum: General Coding Help - Replies (7)

Hello,

Can someone help me how to fix the error i am getting here . Thanks

error is
Traceback (most recent call last):
File "/root/temp0/server",..... More

Print this item

  HOW TO USE C# GENERATED DLL
Posted by: davide_vergnani - Jun-09-2023, 12:52 PM - Forum: General Coding Help - Replies (2)

Hi,
I developed a C# CLI application with my own functionality , and I have created a .dll with several class to implements the comunications beetwee..... More

Print this item

  Add multiple vertical rectangles to a chart in plotly?
Posted by: devansing - Jun-08-2023, 10:58 PM - Forum: Data Science - Replies (2)

I'm struggling to figure out how to create multiple vertical rectangles that span entire plots using plotly.

I'm assuming this is possible using ad..... More


Attached Files

.csv   sample_data.csv (Size: 1.69 KB / Downloads: 2)
Print this item

Question Cannot import easysnmp: ImportError: libnetsnmp.so.30
Posted by: Calab - Jun-08-2023, 08:18 PM - Forum: General Coding Help - Replies (4)

I'm trying to use easysnmp in a virtual environment, but get an error when I import it:

[output](venv) snorton@app7 /fastapi/sv $ python3
Python 3..... More

Print this item

  Comparing List values to get indexes
Posted by: Edward_ - Jun-08-2023, 03:11 PM - Forum: General Coding Help - Replies (7)

I'm trying to compare a short temporary list of values to a master list, to obtain the index number (of short list items) and set two variable values ..... More

Print this item

  Python won 't do decimals
Posted by: SomebodySmart - Jun-08-2023, 10:30 AM - Forum: General Coding Help - Replies (5)

It took me a lot of tries before I was able to figure out the problem, and I was stunned. When building my genealogy website, I display 100 entries pe..... More

Print this item

  Pywinauto typing in the wrong field
Posted by: EGameiro - Jun-07-2023, 10:00 PM - Forum: General Coding Help - No Replies

I'd appreciate any comments on this issue.

I'm using PywinAuto to automate a DeskTop application. And I'm executing this command to fill out a fiel..... More

Print this item

  Save image from outlook email
Posted by: cubangt - Jun-07-2023, 06:43 PM - Forum: General Coding Help - Replies (1)

So i have the following code that works great, updates my excel file and saves the file as expected.. BUT because we are merely updating the one excel..... More

Print this item

  Langchain
Posted by: standenman - Jun-07-2023, 06:02 PM - Forum: Data Science - Replies (2)

I am trying to use langchain to query a pdf document with chatgpt. [python]import os
import openai
from langchain.document_loaders import PyPDFLoad..... More

Print this item

  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: 90)
.docx   TEST.docx (Size: 13.12 KB / Downloads: 82)
.py   xml3_commented.py (Size: 7.6 KB / Downloads: 83)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  ModulNotFoundError matplo... 5 hours ago WicardBohnam snippsat General Codin...
  using mutable in function... 10 hours ago akbarza deanhystad General Codin...
  Why am I getting this err... 10 hours ago Pedroski55 Pedroski55 General Codin...
  Discord - Webcrapping fro... 10 hours ago Tolska Tolska Web Scraping ...
  Low code b2b e-commerce s... 10 hours ago makc abdlwafitahiri Web Scraping ...
  How to edit Tkinter Minim... 11 hours ago kucingkembar kucingkembar General Codin...
  TypeError: '>' not suppor... Today, 09:34 Anouar Anouar Data Science
  How To Make A PyQt5 Progr... Today, 02:18 rcwildabeast menator01 GUI
  Problem Converting Tradin... Yesterday, 19:40 kralxs kralxs General Codin...
  New on python. Needs help... Yesterday, 18:47 jeromep deanhystad General Codin...
  Can provide python tutori... Yesterday, 17:00 Zahiba_Siddiqui carellapansullon Jobs
Most views
  The best Prog... 414546
  Web Scraping ... 305156
  Tutorial Requ... 294492
  Newbie with P... 252397
  Thread remain... 234762
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+ 11873
buran 8090
snippsat 7091
deanhystad 6221
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
mihir_patel535 Today
Tolska Today
Anouar Today
WillieNelson Today
JoshEdgar Today

User Panel Messages

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