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,400
» Latest member: BioNanoTech
» Forum threads: 38,825
» Forum posts: 176,034

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 36 Guest(s)
Bing, Google, Mojeek, Gribouillis

Latest Threads
Sorry Help
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 1
» Views: 64
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Yesterday, 08:02 PM
» Replies: 6
» Views: 7,158
Check if running from she...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 07:53 PM
» Replies: 1
» Views: 67
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 07:58 AM
» Replies: 28
» Views: 15,620
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 178
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,613
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 254
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,631
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 224
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 373

 
  How do I make a symmetric matrix from a column vector?
Posted by: leocsmith - Mar-29-2021, 10:33 AM - Forum: General Coding Help - Replies (3)

I have to transfer some code from MATLAB to python. The code takes a (300x1) column matrix, A, and converts it into a (24x24) symmetric matrix, B. As ..... More

Print this item

  High-Precision Board Voltage Reading from Python into PD
Posted by: Liam484 - Mar-29-2021, 09:54 AM - Forum: General Coding Help - Replies (1)

I am looking for some advice on python scripting into pure data. The plan is to receive an incoming voltage via the High-Precision AD/DA Board into th..... More

Print this item

  How can I find air pollution by geographical coordinates?
Posted by: AlekseyPython - Mar-29-2021, 07:54 AM - Forum: Data Science - Replies (1)

I have the geographical coordinates of meteorological stations and indicators of air pollution at these points. How to mathematically obtain air pollu..... More

Print this item

Smile Set 'Time' format cell when writing data to excel and not 'custom'
Posted by: limors - Mar-29-2021, 07:09 AM - Forum: General Coding Help - Replies (3)

Hi Smile ,

I am using python v3.6 with xlsxwriter. Writing time into excel cell. The problem that I see that the format cell is custom and not ..... More

Print this item

  failing to print not matched lines from second file
Posted by: tester_V - Mar-29-2021, 04:17 AM - Forum: General Coding Help - Replies (14)

Greetings!
For some reason, I do not get the iterations in Python. Sad
Especially with "Else". Confused
here is a problem, I have two fil..... More

Print this item

  GridSearchCV for multi-label classification
Posted by: mapypy - Mar-29-2021, 01:58 AM - Forum: Data Science - No Replies

hi,
I am doing a multi-label text classification, and I am getting the following errors when I attempt to do a Gridsearch to get best params over mu..... More

Print this item

  RuntimeError: generator raised StopIteration
Posted by: quest - Mar-28-2021, 08:02 PM - Forum: General Coding Help - Replies (1)

Hello,
I created this class:

[python]


class ssource:
def __init__(self, n):
self.list1=[]
self.list2=[]
self..... More

Print this item

  Updating dictionary in another py file
Posted by: tommy_voet - Mar-28-2021, 07:22 PM - Forum: Homework - Replies (1)

Hi all,

I have 2 py files. Stock.py and data.py. I use a dictionary from the data file and would like to update it from within the stock file.
..... More

Print this item

  Your Guidance
Posted by: caslor - Mar-28-2021, 06:58 PM - Forum: General Coding Help - Replies (1)

Hi to all. I am newbie in Python programming (have read some articles and see youtube tutorials as a start)
i know to write in C++ (as i self taught ..... More

Print this item

Video Movie Recommender
Posted by: oslagosboi - Mar-28-2021, 05:53 PM - Forum: Data Science - Replies (3)

Hello I'm trying to run this code, but I get this error on line 47 that,
Another way I can fix it is if I add an index column to the dataframe from ..... More

Print this item

  Biggest community Python Web framework
Posted by: Wido - Mar-28-2021, 04:40 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello all!
What Python Web framework has the strongest community?
Thank you.

Print this item

  keyboard listener
Posted by: DPaul - Mar-28-2021, 07:15 AM - Forum: General Coding Help - Replies (5)

Hi,

I am looking for a module that will do the simplest of things:
An app starts, and it waits for the user to enter 1 keyboard key (=validated if ne..... More

Print this item

  instance methods sharing addresses
Posted by: mim - Mar-28-2021, 05:04 AM - Forum: General Coding Help - Replies (1)

is it true:
all the objects of a particular class have their own data members but share the member functions, for which..... More

Print this item

  instance methods
Posted by: mim - Mar-28-2021, 05:01 AM - Forum: General Coding Help - Replies (7)

why the address of __init__ in this code is similar:

[python]class c:
def __init__(self,color):
print (f"id of self in __init__ on cl..... More

Print this item

  AttributeError Traceback (most recent call last)
Posted by: quest - Mar-28-2021, 01:03 AM - Forum: General Coding Help - Replies (5)

Hello,

I created a class:

[python]
class inportProp:

def __init__(self, t0, tM, incoming, phys, clinkdt, otherport=None, name=''):
..... More

Print this item

  replace in code vs literals
Posted by: Skaperen - Mar-28-2021, 12:37 AM - Forum: General Coding Help - Replies (3)

i have a string of Python code. i want to replace(';','\n') for the code but not for any ';' in literal stri..... More

Print this item

  I need help for adding def to my code
Posted by: muzaffarshamsiev - Mar-27-2021, 09:41 PM - Forum: Homework - Replies (1)

so we wrote this and a tutor asked us to add a def how to add it?

[python]import random

# library that we use in order to choose
# on random w..... More

Print this item

  Encoding Problem?
Posted by: Konlork - Mar-27-2021, 05:18 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi all,

i have an issue crawling results from google. The first results are extracted correctly, but the 8th result throws an exception.
This is m..... More

Print this item

Photo After using models.Model on my class Im getting 'ImproperlyConfigured' error Django
Posted by: khavro - Mar-27-2021, 04:47 PM - Forum: Web Scraping & Web Development - Replies (1)

This question is not only about Python but about Django framework as well.

1. I just started a new project in django, I run the command 'django-adm..... More

Print this item

  Python dictionary with values as list to CSV
Posted by: Sritej26 - Mar-27-2021, 03:54 PM - Forum: General Coding Help - Replies (4)

Hello,
I have a dictionary in this way
tdm={
word1: [0,0,0,1.....] -> 253 values in the list
word2: [0,25,0,2.....]
.
.
.
word 12,000: [..... More

Print this item

  Reconnect to an API?
Posted by: stylingpat - Mar-27-2021, 03:24 PM - Forum: General Coding Help - Replies (1)

Hello everyone, my Python program connects to an API, is there any way to make it try and "auto reconnect" every 1 min to the said API if it gets disc..... More

Print this item

  Capture Scheme ( http e https )
Posted by: JohnnyCoffee - Mar-27-2021, 03:10 PM - Forum: General Coding Help - No Replies

I am using the socketserver as the example below to establish connections in the tcp layer and to be able to have interactions with the http data proc..... More

Print this item

  Scraping a page with log in data (security, proxies)
Posted by: iamaghost - Mar-27-2021, 02:56 PM - Forum: Web Scraping & Web Development - No Replies

Hey guys,

I have a few questions regarding the safety issues whilst scraping the web.

Im working for an agency selling tickets for a big fligh..... More

Print this item

  New Email Provider
Posted by: snippsat - Mar-27-2021, 02:56 PM - Forum: Board - No Replies

We have signed up for new Email provider which is Amazon SES(Simple Email Service).
We had some trouble with Gmail which needed to be reactivated reg..... More

Print this item

  reading lines from a string [Solved]
Posted by: ebolisa - Mar-27-2021, 02:55 PM - Forum: General Coding Help - Replies (14)

Hi,

The code below works, but it has too many lines. I tried to shorten it, but I get OSError: [Errno 36] File name too long..... More

Print this item

  PySimpleGUI keeps running after LibreOffice crashs
Posted by: FernandoCabral - Mar-27-2021, 02:22 PM - Forum: GUI - Replies (4)

This is a PySimpleGUIQt issue, not necessarily a PyQt issue. I posted it here for similarity, because I didn't find a PySimpleGUIQt thread.

Here is..... More

Print this item

  Converting decimals
Posted by: stylingpat - Mar-27-2021, 11:23 AM - Forum: General Coding Help - Replies (3)

Good morning!

If I have a variable that is let’s say 2000.846

What would be the easiest way to convert the decimals to a specific number?

If ..... More

Print this item

  Add column based on others
Posted by: timste - Mar-27-2021, 10:52 AM - Forum: Data Science - Replies (8)

Hi there,

This is a dataframe with glacial lakes and their volume:

[python]
data = {'Volume': ['50', '100', '100', '90', '60', '200', '150', '..... More

Print this item

  Calcolate the average of numbers from a .txt file
Posted by: francescomiles - Mar-27-2021, 10:24 AM - Forum: General Coding Help - Replies (2)

I start to learn programming few weeks ago and I'm trying to do an exercise that ask me to calculate the average of a list of number from a text file...... More

Print this item

  How to solve AttributeError
Posted by: Roshan - Mar-27-2021, 07:08 AM - Forum: General Coding Help - Replies (5)

I am using line chart in tkinter.

First i create button event, then generate number graph & updating graph & working fine.

Now change program & ..... More

Print this item

  Displaying database info in QTableWidget
Posted by: thewolf - Mar-27-2021, 01:32 AM - Forum: GUI - Replies (6)

I was trying to keep my code somewhat organized and I ran into a slight problem and I'm hoping I won't have to restructure it too much. I have two fil..... More

Print this item

  Python can't find a library which is definitely there!
Posted by: Pedroski55 - Mar-26-2021, 11:23 PM - Forum: General Coding Help - Replies (1)

EDIT: I managed to get it working with:

Quote:sudo apt-get install libzbar0

Don't know what I have in my .local folder, must be something fo..... More

Print this item

  IoT Air Monitoring System
Posted by: project_science - Mar-26-2021, 08:14 PM - Forum: General Coding Help - No Replies

Hi,

I’m looking to make a small IoT project / test automation with my Raspberry Pi. I have a light and temperature sensor. I want to make an air ..... More

Print this item

  PIP Error
Posted by: Frogcop - Mar-26-2021, 07:56 PM - Forum: General Coding Help - Replies (5)

Hello, I'm having an error when I try to run PIP. I've tried reinstalling Python but it didn't work. (I'm using Python 3.5 because my operating system..... More

Print this item

  Launch Windows Application
Posted by: OEMS1 - Mar-26-2021, 07:42 PM - Forum: General Coding Help - No Replies

Hallo,

I am using a python script running as a service (intalled with NSSM)
The script is working fine, but I can not start an application like no..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Sorry Help 4 hours ago BioNanoTech Pedroski55 General Codin...
  IP address for users Yesterday, 20:02 Robots DeaD_EyE Networking
  Check if running from she... Yesterday, 19:53 rjdegraff42 DeaD_EyE General Codin...
  Merge video with subtitle... Yesterday, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580465
  Tutorial Requ... 519979
  Web Scraping ... 442797
  Newbie with P... 387013
  New Users Int... 386755
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
BioNanoTech Today
arachlmaarley4839 Yesterday
CarlApome Yesterday
JulioLet Yesterday
aellatsz9602 12-30

User Panel Messages

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