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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,580

Full Statistics

Online Users
There are currently 54 online users.
» 1 Member(s) | 48 Guest(s)
Applebot, Bing, Google, AOL, Tycho_2025

Latest Threads
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
6 hours ago
» Replies: 1
» Views: 74
print does not open conso...
Forum: General Coding Help
Last Post: Pedroski55
11 hours ago
» Replies: 2
» Views: 100
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,539
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 103
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 224
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,051
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 465
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,096
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,172
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 854

 
  Homework, functions
Posted by: janoshz - Oct-31-2019, 03:19 PM - Forum: Homework - Replies (8)

Hello,

I have this assignment and it kinda works on the platform. What is the problem, the character input. If the input is more than one character..... More

Print this item

  sharing memory(read-write) between multiple processes
Posted by: mike000 - Oct-31-2019, 02:38 PM - Forum: General Coding Help - Replies (1)

I need multiple processes working to be updating(adding data) to an array in memory, so it will be growing large.
the code I'm posting here doesn't d..... More

Print this item

  convert strings of date to datetime exported from CSV
Posted by: GiorgosPap31 - Oct-31-2019, 02:28 PM - Forum: General Coding Help - Replies (1)

Hello.
I am using python3 to export some date from a csv file.
I have a csv file full of dates in the form of dd/mm/yyyy
Suppose that I have two st..... More

Print this item

  multiprocessing doesnt contain some modules(shared_memory)
Posted by: mike000 - Oct-31-2019, 12:43 PM - Forum: General Coding Help - Replies (3)

I'm using pycharm and when I try to do

from multiprocessing import shared_memory
pycharm tells me is a wrong line of code, how ..... More

Print this item

  Sorting a large CVS file
Posted by: DavidTheGrockle - Oct-31-2019, 12:15 PM - Forum: Data Science - Replies (1)

What I have is a large 707,000 row CVS file. In col 9 of 10 there is an id which looks like EG47213, EB53955 and so on. There are probably about 700 d..... More

Print this item

  Issue with code for auto checkout
Posted by: nqk28703 - Oct-31-2019, 08:19 AM - Forum: General Coding Help - Replies (2)

Hi all,

I have code for auto checkout in Odoo server:

[python]model.cron_set_attedance_checkout()
class hr_attendace(models.Model):

_inherit = ..... More

Print this item

  How to connect Mysql databse with python and VSCode IDE
Posted by: madhusoodhananER - Oct-31-2019, 05:30 AM - Forum: General Coding Help - Replies (1)

I am using VSCode ide for my python project. I want to connect python with MySQL database, I already downloaded MySQL connector using pip MySQL connec..... More

Print this item

  Make color for string when print to console
Posted by: hadoan - Oct-31-2019, 02:19 AM - Forum: General Coding Help - Replies (6)

Hi Everyone.

I want to make color for text, string when print into the console window but could not.

I have searched on google but not lucky.
..... More

Print this item

  what's really wrong with this f-string?
Posted by: Skaperen - Oct-31-2019, 02:02 AM - Forum: News and Discussions - Replies (1)

what's really wrong with this f-string? the quotes look right so it must be the backslash.
[output]>>> a=432
>>> s=f'{a} "\{"'
File "<stdin>", l..... More

Print this item

  generator runout
Posted by: Skaperen - Oct-31-2019, 01:24 AM - Forum: News and Discussions - Replies (6)

this can get annoying:[output]>>> regions_fns = (f'{pre}{my}{aws}{ec2}region{s}{ext}' \
... for my in ('my_','my','') \
..... More

Print this item

  Help on question about buses
Posted by: edwdas - Oct-30-2019, 11:47 PM - Forum: Homework - Replies (5)

Hello,

So the purpose of this script is to take an input of passengers and calculate the cheapest cost of required buses. BigBus takes 48 passenger..... More

Print this item

  webbrowser and menu not working.
Posted by: sik - Oct-30-2019, 11:03 PM - Forum: General Coding Help - Replies (1)

Can someone please explain to me why this doesn't work?
[python]

def webpage():

import webbrowser

web1="http://www.bbc.co.uk/"
web2="..... More

Print this item

  what am i doing wrong!? music wont play
Posted by: jusrosetyler1123 - Oct-30-2019, 10:59 PM - Forum: General Coding Help - Replies (2)

I am using a raspberry pi and my script is not complete but the shuffle music button is not working i don't know what I did wrong
I am using pygame f..... More

Print this item

  frequency list from wordcloud
Posted by: acdcfanman15 - Oct-30-2019, 08:43 PM - Forum: Data Science - Replies (5)

I have written code to help me generate a WordCloud but my boss has asked me to include a frequency list for my data based on a short description. I a..... More

Print this item

  How to Call a method of class having no argument
Posted by: dataplumber - Oct-30-2019, 05:59 PM - Forum: General Coding Help - Replies (7)

I am trying to call the method of the class having no arguments but it is failing.

[python]
class ab:
def a():
print("in..... More

Print this item

  Need help understanding some code
Posted by: menator01 - Oct-30-2019, 05:31 PM - Forum: Game Development - Replies (1)

I've been practicing with classes a little with some code I found.
The original code was not in a class so that is my project to put it in one.
Ever..... More

Print this item

  Guido van Rossum Retires
Posted by: ichabod801 - Oct-30-2019, 03:51 PM - Forum: News and Discussions - Replies (1)

There is an announcement on the Dropbox site about Guido leaving the company for r..... More

Print this item

  spread values of dataset equally over fixed number of bins
Posted by: moose_man - Oct-30-2019, 02:57 PM - Forum: Data Science - Replies (3)

Hi all,

I used numpy to bin some data with following simple code:

a = np.array(data)
histo = np.histogram(a,bins=nbrbins)
..... More

Print this item

  How I can use multiprocessing with upickled module variable?
Posted by: AlekseyPython - Oct-30-2019, 02:56 PM - Forum: General Coding Help - Replies (3)

Python 3.7.1

I use multiprocessing.Pool for paralleling my code, and it work good. But when I add contextvars in working module (for my coroutines,..... More

Print this item

  Error: too many values to unpack
Posted by: Mike - Oct-30-2019, 02:54 PM - Forum: General Coding Help - Replies (1)

Hello,
I have a script that should open external ascii file, take the first two columns, add each row and output file with first two columns with sum..... More

Print this item

  ARPANET 50
Posted by: perfringo - Oct-30-2019, 12:04 PM - Forum: Bar - Replies (1)

50 years ago (29th of October 1969) first letters were transmitted over ARPANET (first three of them happened to be 'l', 'o' ---system crash--- 'l' *..... More

Print this item

  3D covariance matrix - vectrorizing python
Posted by: Luca_R - Oct-30-2019, 10:54 AM - Forum: General Coding Help - No Replies

I need to speed up a python code, I would like to avoid the use of the following for cycle, where "data" matrix has dimension [dim1xdim2]:

[python]..... More

Print this item

  Delete a whole row if all cells contain certain values
Posted by: tuxman - Oct-30-2019, 09:39 AM - Forum: General Coding Help - Replies (1)

Hello !

I try to delete all rows from a Excel sheet, who satisfied this condition: all cells from a row must contain only the values "-" or "".

..... More

Print this item

  Why doesn't my spider find body text?
Posted by: sigalizer - Oct-30-2019, 08:54 AM - Forum: Web Scraping & Web Development - Replies (5)

So I'm trying to work with a Scrapy project that I found, called RISJbot (GitHub) for extracting the cont..... More

Print this item

  variables in a class
Posted by: Skaperen - Oct-30-2019, 07:48 AM - Forum: News and Discussions - Replies (3)

a while back, someone suggested to use variables in a class to share a namespace between a function or method. i am wondering if this class can do th..... More

Print this item

  can't open excel with my macos
Posted by: dcc - Oct-30-2019, 04:18 AM - Forum: General Coding Help - No Replies

I hope to help,thank you
What happened to aeosa?

[error]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Version..... More

Print this item

  Sharing memory across threads / scripts
Posted by: Radek - Oct-30-2019, 03:20 AM - Forum: General Coding Help - Replies (1)

Hi,

I am trying to gather data from independent python scripts (data acquisition devices) into the main program. I came across multiprocessing, bu..... More

Print this item

  Pivot Table hash problem
Posted by: stilwellj - Oct-30-2019, 02:49 AM - Forum: Data Science - Replies (1)

I am trying to turn my data frame into a pivot table. I am getting this error "TypeError: 'DataFrame' objects are mutable, thus they cannot be hashed"..... More

Print this item

  Python 3.8 to be in Ubuntu 20.04 Focal Fossa LTS
Posted by: Skaperen - Oct-30-2019, 02:04 AM - Forum: News and Discussions - Replies (4)

Python 3.8 to be in Ubuntu 20.04 Focal Fossa LTS

https://www.phoronix.com/scan.php?page=n...evelopment

Print this item

  capture stdout from child processes
Posted by: Skaperen - Oct-30-2019, 12:11 AM - Forum: News and Discussions - No Replies

the parent process, which is not running any threads, will be running more than one child processes (using the multiprocessing module) that will be ru..... More

Print this item

  not bitwise ~15
Posted by: 1885 - Oct-29-2019, 10:43 PM - Forum: General Coding Help - Replies (3)

>>~15
returns a -16
>>~15&255
returns 240

I'm not sure why.
Please throw me a bone.

Print this item

  Is the #! (shebang) line obsolete?
Posted by: newbieAuggie2019 - Oct-29-2019, 09:25 PM - Forum: General Coding Help - Replies (4)

Hi!

It looks like the Python language is advancing much much quicker than books on Python, so I find that although some sites explain..... More

Print this item

  Comparison Operator "is" idle vs python command
Posted by: spisatus - Oct-29-2019, 08:20 PM - Forum: General Coding Help - Replies (3)

I don't understand why the following results aren't the same. c = (a is b) returns True while (a is b) in python idle returns False. What aren't I und..... More

Print this item

  Potential confusion combining != with or
Posted by: Mark17 - Oct-29-2019, 07:48 PM - Forum: General Coding Help - Replies (11)

I'm trying to write a program for multiplication facts. It generates the list of facts, randomizes it, and then goes through. I just enter y or n de..... More

Print this item

  Checking a filename before reading it with pd.read_csv
Posted by: karlito - Oct-29-2019, 07:44 PM - Forum: Data Science - Replies (2)

Hi Guys,

I'm trying to read a csv file according to its type (X or Y, so if the file name starts with 125 I read the raw_file1 file otherwise raw_f..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 6 hours ago glestwid Larz60+ General Codin...
  print does not open conso... 11 hours ago Tycho_2025 Pedroski55 General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 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...
Most views
  The best Prog... 577484
  Tutorial Requ... 501366
  Web Scraping ... 441106
  Newbie with P... 385164
  New Users Int... 369926
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Today
maribita Today
AnalystRobert Today
Safariscampoea Today
DataAnalytics021 Today

User Panel Messages

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