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,669
» Latest member: SatoshiNGenesis
» Forum threads: 37,406
» Forum posts: 169,991

Full Statistics

Online Users
There are currently 381 online users.
» 1 Member(s) | 373 Guest(s)
Facebook, Bing, Google, Yandex, Applebot, Baidu

Latest Threads
i need help pls
Forum: Game Development
Last Post: Fobertsmene
5 minutes ago
» Replies: 3
» Views: 1,575
¿Cómo se fija el presupue...
Forum: Bar
Last Post: Taylor13Sylas
37 minutes ago
» Replies: 1
» Views: 26
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
50 minutes ago
» Replies: 8
» Views: 301
Program that calculates b...
Forum: Data Science
Last Post: deanhystad
52 minutes ago
» Replies: 1
» Views: 75
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
4 hours ago
» Replies: 1
» Views: 149
API design an choice
Forum: News and Discussions
Last Post: Skaperen
5 hours ago
» Replies: 2
» Views: 96
negative memory usage
Forum: General Coding Help
Last Post: Gribouillis
Today, 08:43 AM
» Replies: 1
» Views: 91
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: WicardBohnam
Today, 01:25 AM
» Replies: 9
» Views: 246
Why am I getting this err...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:31 PM
» Replies: 4
» Views: 153
Discord - Webcrapping fro...
Forum: Web Scraping & Web Development
Last Post: Tolska
Yesterday, 12:27 PM
» Replies: 0
» Views: 75

 
  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

  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc)
Posted by: ZenWoR - Apr-06-2019, 11:15 PM - Forum: GUI - No Replies

Button reacts like it's pressed... but window's not opened...

New window (with that button) won't open after function (in a Thread Class)...

See..... More

Print this item

  I don't think I understand the basics of tkinter!
Posted by: jpezz - Apr-06-2019, 09:20 PM - Forum: GUI - Replies (6)

The documentation doesn't help!

If I have (forget the variables except the ones I need help with and not all statements are shown):
[python] root ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [PyGame] i need help pls 5 minutes ago augusto_A Fobertsmene Game Developm...
  ¿Cómo se fija el presupue... 37 minutes ago Davis5Noah Taylor13Sylas Bar
  using mutable in function... 50 minutes ago akbarza snippsat General Codin...
  Program that calculates b... 52 minutes ago xzenon deanhystad Data Science
  Problem Converting Tradin... 4 hours ago kralxs kralxs General Codin...
  API design an choice 5 hours ago Skaperen Skaperen News and Disc...
  negative memory usage Today, 08:43 akbarza Gribouillis General Codin...
  ModulNotFoundError matplo... Today, 01:25 WicardBohnam WicardBohnam General Codin...
  Why am I getting this err... Yesterday, 12:31 Pedroski55 Pedroski55 General Codin...
  Discord - Webcrapping fro... Yesterday, 12:27 Tolska Tolska Web Scraping ...
  Low code b2b e-commerce s... Yesterday, 12:18 makc abdlwafitahiri Web Scraping ...
Most views
  The best Prog... 416465
  Web Scraping ... 306764
  Tutorial Requ... 295884
  Newbie with P... 253448
  Thread remain... 235869
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 7093
deanhystad 6222
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
SatoshiNGenesis Today
Taylor13Sylas Today
Davis5Noah Today
a001 Today
Namanrajput Today

User Panel Messages

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