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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

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

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 3
» Views: 161
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 152
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 120
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 165
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 347
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 66
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 111
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 356
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 204
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 314

 
  lists, strings, and byte strings
Posted by: Skaperen - Mar-01-2018, 01:44 AM - Forum: General Coding Help - Replies (2)

if i want to convert a string to a list then back, again, it's rather easy. if i want to do the same with a byte string it's not. anyone know a way ..... More

Print this item

  Executing DOS programs within Python
Posted by: mdsi2000 - Feb-28-2018, 10:25 PM - Forum: General Coding Help - Replies (4)

Hello Group!
I have been a programmer for 30 years (yea an old timer) I'm new to Python and I'm working on a project to convert a software from MS DO..... More

Print this item

  Homework: Invalid syntax using if statements
Posted by: chehortop - Feb-28-2018, 10:25 PM - Forum: Homework - Replies (3)

So I'm doing a homework assignment where we are meant to make a program that asks the user their name, age and what computer they want to buy. Once th..... More

Print this item

  List of lists
Posted by: MarkLogan - Feb-28-2018, 09:34 PM - Forum: Homework - Replies (3)

Hi, I'm having trouble with this : I have a txt files with combinaison of two number. Like this :
0 2
0 3
1 0
1 4
1 6
1 7
1 9
2 3
2 6
2 9..... More

Print this item

  Trying to invert DICOM image with Python 3.6
Posted by: newmanf - Feb-28-2018, 08:38 PM - Forum: General Coding Help - Replies (1)

I'm trying to INVERT a DICOM image in Python 3.6. I've tried this (and many others) pieces of code:

[python]
#from PIL import Image
import matplo..... More

Print this item

  Pandas/Excel, reading from one column writing back to another...
Posted by: williamlombard - Feb-28-2018, 07:56 PM - Forum: Data Science - Replies (1)

Hi Guys

Can you help me process the data in a spreadsheet, in particular to read values in one column apply some functions and then write the results..... More

Print this item

  if else with comparison >= does not work
Posted by: angelina7382 - Feb-28-2018, 07:20 PM - Forum: General Coding Help - Replies (7)

[python]
hrs = float(input('Enter Hours:'))
rate = float(input ('Enter Rate:'))
h = float(hrs) - 40
r = float (rate) * 1.5
def computepay(h,r):
..... More

Print this item

  parse date/time
Posted by: bb8 - Feb-28-2018, 06:55 PM - Forum: General Coding Help - Replies (8)

i need to parse date/time stamps of this format:

Oct 4 13:27:52 2003
i also need to handle leap years.

what can i use for this..... More

Print this item

  List 3 dimensions reference does not work
Posted by: Mario793 - Feb-28-2018, 04:39 PM - Forum: General Coding Help - Replies (1)

Hello, I am currently working on a program to plot some data in Python, and I have a little problem with referencing some values from an array of thre..... More

Print this item

  list syntax
Posted by: blazersnake - Feb-28-2018, 04:35 PM - Forum: General Coding Help - Replies (6)

Hi, I need to find the appropriate list operations.

example:

x = [1, 2, 3]
y = x
y[1] += 2
print(x)
>> [1, 4, 3]

How can I have y become ..... More

Print this item

  Set input text from button
Posted by: gio123 - Feb-28-2018, 03:36 PM - Forum: GUI - Replies (1)

Hi All,
I need to get the text of the textbox (ScrolledText) by pressing the "Find" button. At the moment the command print the text entered but I ne..... More

Print this item

  Class Modules, and Passing Variables: Seeking Advice
Posted by: Robo_Pi - Feb-28-2018, 02:48 PM - Forum: General Coding Help - Replies (21)

Class Modules, and Passing Variables: Seeking Advice

Introduction
Hello, this is my first post and I'm just learning..... More

Print this item

  pandas convert date/time to week
Posted by: okl - Feb-28-2018, 02:04 PM - Forum: Data Science - Replies (3)

Hi

Below error when trying to convert date/time to week


data.columns
data.index
data['DATECREATED'].dt.week
[error]
-----------..... More

Print this item

  TypeError: list indices must be integers or slices, not float
Posted by: RedSkeleton007 - Feb-28-2018, 12:27 PM - Forum: General Coding Help - Replies (1)

Why can't I just get two decimal places to the right of the decimal point?
Or are the circumstances with list indexes different:
[python]
#!/usr/bi..... More

Print this item

  NoneType allways a problem
Posted by: mariolopes - Feb-28-2018, 12:07 PM - Forum: General Coding Help - Replies (1)

Hi
I got a problem
I use the following code to get the elements from one webpage. The problem is I can't save the value if the item is none
The p..... More

Print this item

  Multi-Threaded Alexa Website Ranker Problem - All Threads Doing Same Task
Posted by: digitalmatic7 - Feb-28-2018, 09:21 AM - Forum: Web Scraping & Web Development - No Replies

I've created a very simple bot, and I'm having trouble threading it.

It loads a list of URLs from links.csv (sample list here: ..... More

Print this item

  question about train_test_split()
Posted by: fadi - Feb-28-2018, 08:14 AM - Forum: General Coding Help - Replies (3)

Hello

I using the train_test_split function in the following code

[python]

# Load the data set for training and testing the logistic regres..... More

Print this item

  How to read filename and specific cell value from multiple csv
Posted by: Prince_Bhatia - Feb-28-2018, 08:04 AM - Forum: General Coding Help - No Replies

hi,

i have muliple csv's , i am writing a module that can read multiple csv's and take one cell position and pick it's value and append it to new ..... More

Print this item

  some advice
Posted by: garikhgh0 - Feb-28-2018, 06:48 AM - Forum: GUI - Replies (2)

Hi. please advice me which widgets to use tkinter or PyQt for creating applications for windows. in the application must be used some data tables, but..... More

Print this item

  Get Data from QComboBox
Posted by: Ferris - Feb-28-2018, 04:59 AM - Forum: GUI - No Replies

Good day to everyone!
How can I get value of QComboBox? Cause from currentText() I only get my first value. In the internet i found examples where va..... More

Print this item

  Saving data into .mat (Matlab Fiile)
Posted by: Tulo_Stone - Feb-28-2018, 12:57 AM - Forum: Data Science - No Replies

Hi All,

I have a series of text files with data and I I have written this code below to extract only information in these 1 - 4 columns
[python]..... More

Print this item

  jsonstr.format()
Posted by: Skaperen - Feb-28-2018, 12:53 AM - Forum: General Coding Help - Replies (7)

the .format() method does not always work with JSON strings. what do you guys use instead?

Print this item

  Nested Loop multiplication table
Posted by: SushiRolz - Feb-28-2018, 12:47 AM - Forum: Homework - Replies (3)

I am trying to recreate a multiplication table, but i am stuck on where to put what code where.
Here are the specifications for it:

Write a prog..... More

Print this item

  Program excercise
Posted by: SushiRolz - Feb-28-2018, 12:43 AM - Forum: Homework - Replies (1)

Write a program that draws a house by printing characters to the screen. This program should have main, PrintGround, PrintRoof, and PrintWall function..... More

Print this item

  curses.initscr doesn't work
Posted by: zaphod424 - Feb-28-2018, 12:34 AM - Forum: General Coding Help - Replies (3)

so Ive written a program, using the curses module to open a window, however when I run it I get an error message:



[error]Traceback (most recent..... More

Print this item

  Convert JSON to CSV
Posted by: Linuxdesire - Feb-27-2018, 10:07 PM - Forum: General Coding Help - Replies (6)

I have been searching google and working on converting a JSON to a CSV but have not been successful. I call an API from newsapi.org and I can get the ..... More

Print this item

  Homework help?
Posted by: manualbeatdrop - Feb-27-2018, 08:51 PM - Forum: Homework - Replies (1)

Hiya guys. I'm a noob and really need some help. So I was told to code something in python ver.3.4.1 and basically you input an age (12-18) and It the..... More

Print this item

  Code to monitoring IP numbers
Posted by: omar - Feb-27-2018, 08:19 PM - Forum: Networking - Replies (5)

I want some suggestions for some code I want to write.

Let's say I have 10 different logins on my PC.
I want to use my mobile to login and connect..... More

Print this item

  Word co-occurrence matrix for a string (NLP)
Posted by: JoeB - Feb-27-2018, 07:15 PM - Forum: General Coding Help - Replies (2)

I need to create a word co-occurrence matrix that shows how many times one word in a vocabulary precedes all other words in the vocabulary for a given..... More

Print this item

  PYTHON - send email with attachment Error
Posted by: PYTHONDUDE - Feb-27-2018, 06:52 PM - Forum: General Coding Help - Replies (1)

I came up with the following python to send an email with attachment. the text file is located c:/python/20180227.txt (the dated file is changed dai..... More

Print this item

  Converting Decimal to Binary
Posted by: emerger - Feb-27-2018, 06:40 PM - Forum: General Coding Help - Replies (1)

Hello.
My instructor gave us this code to understand. I think I understand what each line does except one line below in bold. Will someone please ex..... More

Print this item

  Am I going about this wrong?
Posted by: Oliver - Feb-27-2018, 04:31 PM - Forum: Web Scraping & Web Development - No Replies

I have a Flask Web Service.

In one of the POST methods, I read and build a SVC classifier. It works! Hurray.

----

What I was thinking was tha..... More

Print this item

  Guido van Rossum: BDFL Python 3 retrospective
Posted by: snippsat - Feb-27-2018, 02:36 PM - Forum: News and Discussions - Replies (13)

Guido van Rossum: BDFL Python 3 retrospective

Print this item

  Write selected (random) columns to output-file
Posted by: anjohepa - Feb-27-2018, 02:19 PM - Forum: General Coding Help - No Replies

Hello everyone,

I am about to take a random sample (n = 2) from a tab-separated "ran.txt"-file displayed right below, but I only want to print the ..... More

Print this item

  Beautifulsoap can't get page title
Posted by: mariolopes - Feb-27-2018, 11:53 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi
I can't get the tilte of the following page
http://cheirabem.com/mostraperfumes.aspx...Balenciaga
here is my code:
[python]
from bs4 impor..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 6 hours ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579097
  Tutorial Requ... 511243
  Web Scraping ... 442065
  Newbie with P... 386127
  New Users Int... 378413
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+ 12108
buran 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday
ViktoriaMetodieva Yesterday

User Panel Messages

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