Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,968
» Latest member: Seu12Jorge
» Forum threads: 38,730
» Forum posts: 175,551

Full Statistics

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

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 7
» Views: 353
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,794
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 657
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,193
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,754
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Sep-27-2025, 03:54 AM
» Replies: 3
» Views: 647
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,141
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,123
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,409
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,970

 
  SAS Equivalent of Macro variable in Python
Posted by: AI_ML_Neophyte - Jan-24-2019, 09:09 PM - Forum: General Coding Help - Replies (4)

I am writing code to simulate different scenarios. However, it gets cumbersome to type in the values for different scenarios. I was hoping I could use..... More

Print this item

  New guy looking at lists
Posted by: sumncguy - Jan-24-2019, 08:19 PM - Forum: General Coding Help - Replies (5)

Hello folks :

Version/system stats:

[quote]
@localhost ~]$ python -V
Python 2.6.6
@localhost ~]$ cat /etc/*release | tail -1
CentOS release ..... More

Print this item

  inkscape plugin write in python error
Posted by: costycnc - Jan-24-2019, 07:58 PM - Forum: General Coding Help - Replies (5)

[python]def transformPath(self, p):
""" Transforms path to machine coordinates

This takes a path as returned by simplepath.parsePath and retur..... More

Print this item

  pd.query method question
Posted by: PolskaYBZ - Jan-24-2019, 07:48 PM - Forum: Data Science - Replies (5)

Hi,

I have a dataframe for which I want to create a filter.
I know you can do it via Boolean indexing, but now I found as well the pd.query method..... More

Print this item

  testing if this is a container type
Posted by: Skaperen - Jan-24-2019, 07:01 PM - Forum: General Coding Help - Replies (7)

in a function being passed an argument, it might be a single data type or it might be a container of some type. i need to do different callbacks depe..... More

Print this item

  [split] Help with cx_Oracle
Posted by: gnishakamath - Jan-24-2019, 07:01 PM - Forum: General Coding Help - No Replies

i have a pl/sql contents in a .sql file with some insert/update oracle sql commands in it.
Is it possible in python to call that .sql file and execut..... More

Print this item

  Adding graphics to canvas
Posted by: vangphucthinh - Jan-24-2019, 04:58 PM - Forum: GUI - No Replies

I have 2 parts of code like this

[python]import tkinter
import tkinter.messagebox
import turtle
import numpy as np
from turtle import*
turtle...... More

Print this item

  Python
Posted by: Shravan - Jan-24-2019, 04:49 PM - Forum: Web Scraping & Web Development - Replies (1)

I want a program which can copy the no of installs from provided google play store link from CSV and export result to csv.
Please Help.

Print this item

  Still learning, class var?
Posted by: b4iknew - Jan-24-2019, 03:26 PM - Forum: Web Scraping & Web Development - Replies (6)

Hello all, hope we have some patience for a beginner this morning.

I've written a weather scraper and it runs without any errors. My problem is o..... More

Print this item

  How to Install Pmw
Posted by: Vicolas - Jan-24-2019, 02:04 PM - Forum: GUI - Replies (2)

[size=medium][b]Please how can I install Python Mega Widget(PWM), Tix and any Packages associated with tkinter in Python 3. Because tkinter has limite..... More

Print this item

  Function and return value
Posted by: Roh_80 - Jan-24-2019, 01:57 PM - Forum: General Coding Help - Replies (1)

[python]
def COLLATZ(NUM):
if NUM == 1:
return NUM
elif (NUM%2 == 0):
NUM = NUM/2
print(NUM)
COLLATZ(NU..... More

Print this item

  Best GUI toolkit to learn
Posted by: Vicolas - Jan-24-2019, 01:45 PM - Forum: GUI - Replies (4)

Hi, please what is the best Python GUI toolkit to learn and why? Thanks.

Print this item

  Python Linting (newbie)
Posted by: LieveHeer - Jan-24-2019, 01:00 PM - Forum: General Coding Help - Replies (2)

Hey everyone,

I just started learning to code and I chose Python 3 to start with, I hope I made the right choice!
Now I am following a tutorial an..... More

Print this item

  thonny 3.0.8 on xubuntu 18.04 lts
Posted by: lemonred - Jan-24-2019, 12:56 PM - Forum: Bar - Replies (2)

Hi i'am italian my elementary english. Write my problem for thonny ide 3.0.8 download official site.

Launch to ide visualizzation interface graphi..... More

Print this item

  Converting string the pandas dataframe
Posted by: chrismc - Jan-24-2019, 11:07 AM - Forum: Data Science - No Replies

In this screenshot data (string datatype) and df2 (pandas dataframe) store the same data - a timestamp and a value.

How do I get data in a similar ..... More

Print this item

  Cookies
Posted by: Donald - Jan-24-2019, 09:20 AM - Forum: General Coding Help - Replies (3)

Hallo,

this code to read Cookies from FireFox runs without error, but without result. In the console it shows cookies.

[python]
import sqlite3..... More

Print this item

  API -> pandas -> database
Posted by: chrismc - Jan-24-2019, 09:08 AM - Forum: Data Science - Replies (3)

Firstly, apologies if I'm not using the right terminology, I'm trying to run before I walk and you will see the problems I'm having. I know how to co..... More

Print this item

  unexpected sub result after overloading operator
Posted by: jolinchewjb - Jan-24-2019, 07:57 AM - Forum: General Coding Help - Replies (1)

I have below code to test overload of the operator, add is tested ok, sub is not ok, after P1-p3, it becomes empty set, but my sub function is correct..... More

Print this item

  Compare words Python
Posted by: xSphere - Jan-24-2019, 07:44 AM - Forum: General Coding Help - Replies (3)

Hi guys, I need to compare 2 words of a list.
If I have hello and jello it has to print correct, because is the same word or it only has one differen..... More

Print this item

  Repair function for a nested database
Posted by: Alfalfa - Jan-24-2019, 03:34 AM - Forum: General Coding Help - Replies (1)

I made a class handle the preference database of my apps. The problem is that as new features are added, using the get() method on the new keys raise ..... More

Print this item

  one line if else
Posted by: Skaperen - Jan-24-2019, 01:08 AM - Forum: Bar - Replies (2)

python supports statements like

    foo[x] = bar[a if woot[x] else b]
but i recall some people expressing a dislike for code like that. i'..... More

Print this item

  t.onkey command isn't working
Posted by: PythonSnake - Jan-23-2019, 10:55 PM - Forum: General Coding Help - Replies (2)

i just need a bit of help because i just made a game called 'caterpillar' but when i tried running it it wouldnt work when i clicked space.

[pytho..... More

Print this item

  Looking for a Guide Through the Labyrinth
Posted by: stephenmolnar - Jan-23-2019, 08:07 PM - Forum: General Coding Help - Replies (1)

I am a semi-retired Research Scientist who bumbled his way through FORTRAN II programming more years ago that I am willing to admit.

I have a Quant..... More

Print this item

  Write something to another script
Posted by: Lsxbash - Jan-23-2019, 05:35 PM - Forum: General Coding Help - Replies (3)

I just want to write something to another script like this example; When i write msfconsole to terminal is going to opening metasploit so i can do thi..... More

Print this item

  I need help with loop one function and creating variables
Posted by: don - Jan-23-2019, 05:12 PM - Forum: General Coding Help - Replies (3)

my code that is working
*****************************************************
[python]names = ['xx','yy','cc']

for name in names:
exec("%s_m..... More

Print this item

  'int' object is not subscriptable
Posted by: lateublegende - Jan-23-2019, 04:39 PM - Forum: General Coding Help - Replies (2)

my code
[python]
line = line.strip()
except AttributeError:
line = line
line+1
lines = o..... More

Print this item

  help with flatten nested list
Posted by: Arch2030 - Jan-23-2019, 04:29 PM - Forum: General Coding Help - Replies (6)

I am trying to flatten my nested list

Input:

list1=[[[0],[1400,100]],[[0],[1200,100]],[[100],[800,400]]]

Expected output:

flattened1=[[0,1..... More

Print this item

  débutant sur python
Posted by: salahoum - Jan-23-2019, 04:03 PM - Forum: General Coding Help - Replies (2)

j'ai un fichier csv
j'ai trouvé plusieurs vidéo qui fait la lecture de donnés de fichier dans python comme :
nom;age;pays;numéro;salah;21;france;2;Lu..... More

Print this item

  Tuple Unpacking
Posted by: HarshaliPatel - Jan-23-2019, 12:05 PM - Forum: General Coding Help - Replies (3)

Can anyone help me with Tuple unpacking term? If given example, that will help me to understand more clearly.

Print this item

  Dijkstra code - trying to simplify it
Posted by: grandpapa10 - Jan-23-2019, 12:04 PM - Forum: General Coding Help - Replies (1)

Hello again peeps,

After hours struggling with my other code, I decided to start from scratch again.
I finally came up with a code that finds the ..... More

Print this item

  Need help for extractring keys from dictionary
Posted by: dragan979 - Jan-23-2019, 10:59 AM - Forum: General Coding Help - Replies (3)

Have this code:

[python]if mail["Subject"].find("Alert for Ta*** prod errors") > 0 :
body = get_autosys_body(mail)
info = {}..... More

Print this item

  arima model error in python
Posted by: wissam1974 - Jan-23-2019, 09:37 AM - Forum: Data Science - No Replies

hi
i am using the software PyCharm(2018.1) software to create ARIMA model in pyhthon
here is the model that i have created:

[python]
def arima_..... More

Print this item

  Hard time with prime factors in the task.
Posted by: blackknite - Jan-23-2019, 07:51 AM - Forum: General Coding Help - Replies (1)

Hey people.Im trying to do some harder python challenges to learn some new things. Given a string,and a number, I have to get an ascii value of a char..... More

Print this item

  TypeError: __str__ returned non-string error
Posted by: jolinchewjb - Jan-23-2019, 06:34 AM - Forum: General Coding Help - Replies (5)

the result is : TypeError: __str__ returned non-string (type NoneType), but i think my __str__ function is correct,any idea? thanks, this is under pyt..... More

Print this item

  Regarding AWS API authorization
Posted by: naressh1994 - Jan-23-2019, 06:13 AM - Forum: General Coding Help - No Replies

We have created a AWS API gateway for connecting AWS infrastructure. We are having ARC API client for checking the API requests. We have to design a A..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 1 hour ago tester_V Pedroski55 General Codin...
  Select Python comment (#)... Yesterday, 18:39 SpongeB0B tester_V General Codin...
  My goal to be hired worki... 09-27, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... 09-27, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
Most views
  The best Prog... 577285
  Tutorial Requ... 500422
  Web Scraping ... 440963
  Newbie with P... 384993
  New Users Int... 369389
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8176
snippsat 7369
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Seu12Jorge Yesterday
seomelbourneaustralia Yesterday
Jacobjoift Yesterday
zalexstolzeoz5360 Yesterday
Edzed4431 09-27

User Panel Messages

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