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,303
» Latest member: TimTom420
» Forum threads: 38,797
» Forum posts: 175,898

Full Statistics

Online Users
There are currently 79 online users.
» 0 Member(s) | 73 Guest(s)
Bing, Google, AOL, Applebot, Facebook

Latest Threads
Python is not working on ...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 2
» Views: 58
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Yesterday, 04:48 AM
» Replies: 6
» Views: 7,797
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
Yesterday, 02:09 AM
» Replies: 7
» Views: 623
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 120
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 100
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 176
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,207
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 295
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 182
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 113

 
  Using machine learning
Posted by: kingrayd - Apr-08-2019, 06:22 PM - Forum: Data Science - Replies (1)

So, I'm taking part in an ML internship. And as a beginner, we were asked to define how to use machine learning and artificial intelligence to predict..... More

Print this item

  "erlarge" a numpy-matrix to numpy-array
Posted by: PhysChem - Apr-08-2019, 05:02 PM - Forum: Data Science - Replies (2)

Hi all!

Is there a way to concatenate/append/"gluetogether" two (n*m-shaped) matrix into a single (n*m*2-shaped) array (with 3 axle), and [u]not in..... More

Print this item

  List of colors
Posted by: adamG - Apr-08-2019, 04:55 PM - Forum: Data Science - Replies (1)

I am trying to create to create a list of colors based on the labels contained in the array comms.

[python]import matplotlib.pyplot as plt

cmap ..... More

Print this item

  School projet
Posted by: robalexx - Apr-08-2019, 03:43 PM - Forum: Homework - Replies (1)

Hello :)

I have a project to do and it is almost done (i think), I just have some error.
Let me explain : I have 2 files. In the first file, there is..... More

Print this item

  C++ programmer requests Python Web/database advice
Posted by: GregReese - Apr-08-2019, 03:38 PM - Forum: General Coding Help - Replies (3)

Hi folks,

I am an experienced C++ desktop-app programmer. I have a moderate amount of experience with SQL but no experience with Python or Web prog..... More

Print this item

  How to add new rows to existing csv file
Posted by: Sri - Apr-08-2019, 02:32 PM - Forum: General Coding Help - Replies (1)

Hi,

I have test.csv file as show below

Category Value
Initial Target 30
new target 49
recovery time [hrs] 2

Now I ..... More

Print this item

  logging: child module unable to get parent config
Posted by: jerryxiao - Apr-08-2019, 02:22 PM - Forum: General Coding Help - Replies (3)

I had some problems with logging
According to The Doc[/u[url=https://python-forum.io/thread-17358.html]..... More

Print this item

  cups
Posted by: jreislemos - Apr-08-2019, 01:30 PM - Forum: Web Scraping & Web Development - Replies (2)

Alguem poderia me ajudar a encontrar um lugar onde consigo pegar todos os parametros possíveis para este comando:
[python]conn.printFile (prin, myfil..... More

Print this item

  Python validate excel values data types
Posted by: Useruser00 - Apr-08-2019, 01:29 PM - Forum: General Coding Help - No Replies

I am using Pandas to read excel file and validate the columns for Integer, Date and check column value is present in List.
[python]
xl = pd.ExcelFil..... More

Print this item

  *** NameError: name '' is not defined
Posted by: adamG - Apr-08-2019, 12:45 PM - Forum: General Coding Help - Replies (1)

I want to compare the first column of an array with all the other columns and then break the function if they are all the same.

Outside the functio..... More

Print this item

  Pygame 2d game
Posted by: maximk301 - Apr-08-2019, 10:49 AM - Forum: Game Development - Replies (1)

I need help, I am writing a 2D game in the library pygame, I need to add monsters and logic to monsters who attack the main character, I know that I n..... More

Print this item

  Tkinter - Make changes to graph and update it
Posted by: adriancovaci - Apr-08-2019, 09:02 AM - Forum: GUI - No Replies

Basically, I'm making a program which finds the maximum flow of a graph using the Ford-Fulkerson method. The program finds the maximum flow and prints..... More

Print this item

  unable to pass a input after changing the user from root to non root using python
Posted by: avinash - Apr-08-2019, 05:26 AM - Forum: General Coding Help - Replies (3)

In my automation using python am triggering a shell script which takes care of prerequisites to my software installations. Prerequisites am running us..... More

Print this item

  Manipulating Excel with Python.
Posted by: Spacely - Apr-08-2019, 02:19 AM - Forum: General Coding Help - Replies (2)

Hello,

I am new to Py. I need to write data to, read data from, and run a few VBA macros within an excel book. Would rather the book never be opene..... More

Print this item

  Format for elif
Posted by: sunilramakumar - Apr-08-2019, 01:49 AM - Forum: General Coding Help - Replies (4)

Hi - I am new to Python and was attempting to code based on the guidance at https://www.youtube.com/watch?v=8uJFN7OZ...U_3tod0nqo..... More

Print this item

  I need help getting set up for Python
Posted by: FLAJA - Apr-07-2019, 11:59 PM - Forum: General Coding Help - Replies (4)

[size=medium]How do I tell which files I need to download to write Python programs:

https://www.python.org/downloads/release/python-373/ ?

I had..... More

Print this item

  ipython autocomplete broke indentation!
Posted by: Exsul - Apr-07-2019, 10:45 PM - Forum: General Coding Help - Replies (6)

I installed ipython through the pip in order to use autocomplete, and now indentation doesn't work in the regular Python shell (it does still work in ..... More

Print this item

  Where is Popen.pid?
Posted by: jpezz - Apr-07-2019, 10:41 PM - Forum: General Coding Help - Replies (6)

Described in https://docs.python.org/3/library/subprocess.html.

But I run python3 on m..... More

Print this item

  Tkinter project school
Posted by: Kersow - Apr-07-2019, 09:38 PM - Forum: Homework - Replies (2)

Hello / Good evening everyone

I am currently working on a project to realize the HMI (human-machine interaction) indicating to the user the feasibi..... More

Print this item

  ttk.barprogress - root.mainloop
Posted by: francisco_neves2020 - Apr-07-2019, 08:38 PM - Forum: GUI - Replies (11)

[python]
import os
import sys
import tkinter as tk
from tkinter import *
import subprocess
import idlelib
import urllib.request
import ctypes..... More

Print this item

  Confusion with sublcassing a threading class, and inheritance
Posted by: bigmit37 - Apr-07-2019, 08:12 PM - Forum: General Coding Help - Replies (2)

[size=medium]I am trying to understand how to subclass a Thread,
and I am confused with some details of inheritance.
It seems if I want to modify ..... More

Print this item

  how to decode this in python
Posted by: anthoniegallego - Apr-07-2019, 07:39 PM - Forum: Homework - Replies (11)

hi, im fairly new to python and i was wondering how i could finish this code:

[python]import random

def encode_text (text):
random.seed (0)..... More

Print this item

  if clause fails
Posted by: DeadCthulhuWaitsDreaming - Apr-07-2019, 06:34 PM - Forum: General Coding Help - Replies (10)

OK, this shouldn't be that hard but maybe I'm missing something.

This is the full function, the problem lies between the ############################..... More

Print this item

  Error 'object has no attribute' when iterating thru a dictionary
Posted by: mrapple2020 - Apr-07-2019, 06:22 PM - Forum: General Coding Help - Replies (8)

[python]
from collections import defaultdict
arch_dic = {}
arch_dic = defaultdict(list)
arch_dic['PSE2'].append("0/7/CPU0")
arch_dic['PSE2'].appe..... More

Print this item

  How to run python code in Java using remote SSH without py file using streams in Java
Posted by: varanasipavankumar - Apr-07-2019, 06:13 PM - Forum: General Coding Help - No Replies

How to run python code in Java using remote SSH without py file using streams in Java?
How to pass arguments in such a case?

let's say I have to c..... More

Print this item

  Exiting/killing a program with tkinter but leaving the graphic on the screen
Posted by: jpezz - Apr-07-2019, 12:16 PM - Forum: GUI - Replies (3)

I want the opposite of what most people want. I call a python subprogram to put a tk label on the screen. I want that program to terminate itself when..... More

Print this item

  how to add the numbers of a list
Posted by: Pedroski55 - Apr-07-2019, 11:19 AM - Forum: General Coding Help - Replies (2)

I have a list. Each element is either 1 or 0. I want to add them sequentially.

For example:

I have: attendance = [1, 1, 1, 1]

I declare: cumu..... More

Print this item

  Invalid Syntax Error
Posted by: jaycuff13 - Apr-07-2019, 10:22 AM - Forum: General Coding Help - Replies (1)

Hi all,

I am working on a practice script, and I keep receiving an invalid syntax error on my script. Here is the code below. The python hightligh..... More

Print this item

  win32 GetWindowRect for window dimensions
Posted by: MrMajorThorburn - Apr-07-2019, 09:14 AM - Forum: General Coding Help - Replies (3)

I am using win32gui.GetWindowRect for a window I have retrieved the handle for using win32.EnumWindows and matching the title of the window as I see o..... More

Print this item

  Matplotlib 3d voxels animation
Posted by: jasiekkm - Apr-07-2019, 07:44 AM - Forum: General Coding Help - No Replies

What I will asked for is that I would like to animate such an example of matplotlib 3d voxels (https://matplotlib.org/gallery/mplot3d/voxels_numpy_log..... More

Print this item

  I converted string to 'list', but it doesn't look like a list!
Posted by: mrapple2020 - Apr-07-2019, 03:02 AM - Forum: General Coding Help - Replies (3)

Goal: If I find "FP-X" in the string below, I need to retrieve the string on the left of "FP-X" label.
Like retrieve in this example "0/1/CPU0", "0/5..... More

Print this item

  How do I split a large array into smaller sub-arrays?
Posted by: codebeacon - Apr-07-2019, 02:51 AM - Forum: General Coding Help - Replies (3)

Hi,

I was wondering how I could split a large array into smaller chunks?

For example:

[python]
arr = ["hello", "my", "name", "is", "name",..... More

Print this item

  I always get 'None' returned. Confused. What did I miss?
Posted by: jpezz - Apr-07-2019, 01:37 AM - Forum: General Coding Help - Replies (2)

[python]import random


# Morse Code string translator
# delimited with spaces for characters, and / for words
# format example "HELLO WORLD": ....... More

Print this item

  SSL Handshare Errors
Posted by: RebelCoder - Apr-07-2019, 01:27 AM - Forum: Networking - Replies (2)

Hello everyone!

I am trying to access some DB with requests, and this code worked about a month ago:

[python]
print(f"\n[Protein function based..... More

Print this item

  looking fo an expression that yields a dictionary without an item
Posted by: Skaperen - Apr-06-2019, 11:42 PM - Forum: General Coding Help - Replies (5)

i am wanting to make an expression (method call?) that given a dictionary (or set or frozenset), and a hashable value, makes a shallow copy of the dic..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python is not working on ... 1 hour ago lary_p Pedroski55 General Codin...
  Can I develop a live vide... Yesterday, 04:48 mtrkhan mamta25 Web Scraping ...
  Help with Serial.write in... Yesterday, 02:09 racingsubby racingsubby General Codin...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
Most views
  The best Prog... 579411
  Tutorial Requ... 512486
  Web Scraping ... 442305
  Newbie with P... 386356
  New Users Int... 380518
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
TimTom420 Yesterday
cruisesfares Yesterday
SNR Yesterday
Jonathan Yesterday
matt 11-26

User Panel Messages

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