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,981
» Latest member: Davidkiplimo
» Forum threads: 38,733
» Forum posts: 175,565

Full Statistics

Online Users
There are currently 63 online users.
» 0 Member(s) | 56 Guest(s)
Bing, AOL, Google, Twitter

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
1 hour ago
» Replies: 0
» Views: 31
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
7 hours ago
» Replies: 4
» Views: 1,992
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 415
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,049
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,104
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 773
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,077
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,522
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,099
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,560

 
  post getting moved to news and discussions without any notification or explanation?
Posted by: johsmi96 - May-08-2019, 07:00 AM - Forum: Board - Replies (2)

I posted a question about how to find a library in the general coding help forum and it was apparently moved to "news and discussions". Originally I ..... More

Print this item

  Palindromes in Python
Posted by: karansingh - May-08-2019, 06:56 AM - Forum: General Coding Help - Replies (2)

How can I Implement palindromes in Python?

Print this item

  Distributed size limited queue implementation?
Posted by: johsmi96 - May-08-2019, 06:41 AM - Forum: News and Discussions - Replies (1)

I am looking for some implementation of a queue that would work much like the multiprocessing.Queue but between different machines. It should have the..... More

Print this item

  Dashboards with html tables
Posted by: fstefanov - May-08-2019, 02:31 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello folks,

We are going to deprecate our Confluence instance soon.
I was using a Python script to append HTML table,
with static links to S3 ar..... More

Print this item

  integer +-* interval
Posted by: mcgrim - May-07-2019, 09:33 PM - Forum: Homework - Replies (2)

this changed version of my previous code should be able to sum, subtract and multiply
an interval with an integer or float, and the result should be ..... More

Print this item

  How to add a dataframe to an existing excel file
Posted by: wendysling - May-07-2019, 08:50 PM - Forum: Data Science - Replies (2)

Hello,

I am trying to add a dataframe to an existing sheet. I don't see any error, but the data does not show on the sheet.

Is anyone able to tell ..... More

Print this item

  Getting error message for indentation
Posted by: Shafla - May-07-2019, 08:07 PM - Forum: General Coding Help - Replies (5)

HI

i am getting an error for incorrect indentation but can not find the error.
[python]##30/04/19
##
##increment attributes through method

c..... More

Print this item

  missing 1 required positional argument
Posted by: mcgrim - May-07-2019, 08:00 PM - Forum: Homework - Replies (10)

given this code, I should extend
the class so that it can be initialized with only one real value.

for instance,
print(interval(1))
should prin..... More

Print this item

  War game
Posted by: Irhcsa - May-07-2019, 04:38 PM - Forum: General Coding Help - Replies (5)

Trying to finish my game of war card game. I am currently on the final step and need to have it keep score.

Can someone please guide me on how to c..... More

Print this item

  error with requests
Posted by: rudolphyaber - May-07-2019, 03:19 PM - Forum: Web Scraping & Web Development - Replies (9)

Trying to login using requests but I'm getting html returned that appears to be an error page.

Python:
[python]import requests

with requests.Se..... More

Print this item

  need some help with loops
Posted by: s138733 - May-07-2019, 03:00 PM - Forum: General Coding Help - Replies (2)

i am trying to use while loops and if statements to make a text based battle sim in python but i cant figure out how to use the while loops with multi..... More

Print this item

  Truncated email attachments on Ubuntu 16 (Xenial)
Posted by: morphex - May-07-2019, 02:15 PM - Forum: General Coding Help - Replies (1)

Hi.

I was installing

https://github.com/morphex/surveil

On a computer with Ubuntu 16, and found that the attachments on emails sent, were all..... More

Print this item

  predicting values at point in time
Posted by: mk1216 - May-07-2019, 01:52 PM - Forum: Data Science - Replies (1)

Hi, I have a requirement to forecast certain values point-in-time into the future based on historic data.

Sample data set:
date_time ,no_o..... More

Print this item

  Execute a .pyc
Posted by: Serferi - May-07-2019, 12:44 PM - Forum: General Coding Help - Replies (1)

Hello i try to execute a pyc file with this

execfile("Perecastor.pyc")
then I get this:
SyntaxError: Non-ASCII character '\xf3' in ..... More

Print this item

  getting a word from a list
Posted by: sheck33332 - May-07-2019, 12:32 PM - Forum: Homework - Replies (2)

I have to get a word which contains the longest word containing "e" from a list. how would I go about this a main function has not been provided. this..... More

Print this item

  complex numbers
Posted by: mcgrim - May-07-2019, 12:27 PM - Forum: Data Science - Replies (3)

I am trying to come up with methods for addition and subtraction of complex numbers,

so that the print statement should generate something like
1+..... More

Print this item

  for question
Posted by: turex - May-07-2019, 12:02 PM - Forum: General Coding Help - Replies (1)

Hello guys, i have a noob question. Could you help me please ?

I would like to do when i press + key, my values should change respectively ? Tha..... More

Print this item

  should I close csv file?
Posted by: go127a - May-07-2019, 11:22 AM - Forum: General Coding Help - Replies (8)

I have a csv file I made some calculation with code function on it. and requesting output is okay write now.

my question is:
should I write the c..... More

Print this item

  list
Posted by: ravioli2929 - May-07-2019, 10:41 AM - Forum: Homework - Replies (3)

Define the get_funny_average() function which is passed a list of numbers as a parameter and returns the average of some of the numbers in the paramet..... More

Print this item

  mathplotlib savefig FileNotFoundError
Posted by: drinkOut - May-07-2019, 09:54 AM - Forum: Data Science - Replies (3)

Hi!

I've made a figure using matplotlib and now I'm trying to save it to file using matplotlib.pyplot.savefig
[python]import matplotlib.pyplot as ..... More

Print this item

  first code - need some explaining of logic
Posted by: korenron - May-07-2019, 08:51 AM - Forum: General Coding Help - Replies (11)

Hello,
I wrote a code that send UDP,print to terminal \ save to log file whenever I press a button on PI,
and when I press ENTER in the terminal it e..... More

Print this item

  I cannot display object lists
Posted by: Karaca - May-07-2019, 08:13 AM - Forum: General Coding Help - Replies (2)



when I try to view the staff list.

eror:<<<<<< <__main__.Çalışan object at 0x0000000002D92550> <<<<<..... More

Print this item

  scipy curve_fit for multiple independent variables
Posted by: Jay_Nerella - May-07-2019, 08:07 AM - Forum: Data Science - Replies (1)

Hello

I have been trying to fit my data to a custom equation. I have tried with scipy curve_fit and I have two independent variables x and y . ..... More

Print this item

  Regex Pattern
Posted by: NewBeie - May-07-2019, 07:44 AM - Forum: General Coding Help - Replies (5)

Hi,

I have two patterns in my code, one to remove the first part of the string which is just garbage, the second is to remove extra newlines in the..... More

Print this item

  Find index of missing number
Posted by: parthi1705 - May-07-2019, 04:26 AM - Forum: General Coding Help - Replies (3)

Find missing number position / index based on the input

Here is the sample data.

[python]def missing_numbers(num_list):
original_list = ..... More

Print this item

  Write pseudo code for a class assignment
Posted by: Scrimshot - May-07-2019, 03:01 AM - Forum: Homework - Replies (3)

Here is the assignment word for word. Any help in writing this or just giving me some clues to move me along would be appreciated.


Based on a lotter..... More

Print this item

  How to obtain the result from the unstandardised training dataset
Posted by: vokoyo - May-07-2019, 12:46 AM - Forum: Homework - No Replies




May I know how to modify my Python programming thus I will be able to obtain the same result as refer to the image file?





[pyth..... More


Attached Files

.pdf   Principal Component Analysis.pdf (Size: 179.82 KB / Downloads: 476)
Print this item

  division error
Posted by: mcgrim - May-06-2019, 09:25 PM - Forum: Data Science - Replies (8)

The following code

[python]
class interval:
def __init__(self,left,right):
self.right=right
self.left=left
def __add_..... More

Print this item

  TypeError: expected string or bytes-like object
Posted by: twinpiques - May-06-2019, 08:19 PM - Forum: Data Science - Replies (1)

Hi all. I'm trying run the following code and I keep getting the "TypeError: expected string or bytes-like object" error:

[python]

df_sar['sar_..... More

Print this item

  '>' not supported between instances of 'str' and 'int'
Posted by: graham23s - May-06-2019, 07:51 PM - Forum: General Coding Help - Replies (2)

Hi Guys,

I am trying to upload an image to my server using Python:

Function:

[python]def upload_image(image_location, image_name_only)..... More

Print this item

  Reference new dictionary keys with a variable
Posted by: slouw - May-06-2019, 07:17 PM - Forum: General Coding Help - Replies (4)

I want to read text files with parameters and assignments in order to configure a new device.
It seemed correct to read variables and their assignmen..... More

Print this item

  Step through a really large CSV file incrementally in Python
Posted by: bluethundr - May-06-2019, 06:43 PM - Forum: General Coding Help - Replies (6)

I am trying to speed up loading a large CSV file into a MySQL database. I'm using this code it takes about 4 hours to load a 4GB file with millions of..... More

Print this item

  display confusion
Posted by: anfaenger - May-06-2019, 06:39 PM - Forum: GUI - Replies (2)

I simply cannot get the result displayed from the code below. Where do I go wrong?


[python]from tkinter import*

def kalkuliere():
result..... More

Print this item

  I need help using Python to generate usernames and passwords with excel documents
Posted by: Jannejannesson - May-06-2019, 05:49 PM - Forum: General Coding Help - Replies (3)

Hey guys, I need some serious help and guidance with creating a script. I realize I'm well over my head here but I still feel somehow I'm on the verge..... More

Print this item

  Insert into sublist if sublist is not having same no of records.
Posted by: parthi1705 - May-06-2019, 05:09 PM - Forum: General Coding Help - Replies (10)

Having huge no of records in original requirement.
Here a small peace of sample data.

[python]results = [
(Decimal('28000.0000'), 2010, 272)..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 1 hour ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... 7 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [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...
Most views
  The best Prog... 577438
  Tutorial Requ... 500938
  Web Scraping ... 441075
  Newbie with P... 385141
  New Users Int... 369691
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday

User Panel Messages

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