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,935
» Latest member: marineoman
» Forum threads: 38,723
» Forum posts: 175,505

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 31 Guest(s)
Bing, Google, AOL, Facebook, AOL, Mojeek, Internet Archive

Latest Threads
ShanePulse
Forum: General Coding Help
Last Post: LewisByday
13 minutes ago
» Replies: 0
» Views: 5
TimsothyKat
Forum: General Coding Help
Last Post: Fobertsmene
1 hour ago
» Replies: 0
» Views: 20
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:27 PM
» Replies: 2
» Views: 391
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Sep-17-2025, 05:56 PM
» Replies: 9
» Views: 3,413
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 1,816
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 771
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,019
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,068
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,122
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 689

 
  For Loop Works Fine But Append For Pandas Doesn't Work
Posted by: knight2000 - Dec-17-2021, 07:35 AM - Forum: General Coding Help - Replies (2)

Hi all,

I'm practicing a little webscraping and I'm extracting various elements from it. Everything is going as expected except for one component. ..... More

Print this item

Question How to gather specific second-level items from a list
Posted by: chatguy - Dec-17-2021, 06:32 AM - Forum: General Coding Help - Replies (2)

Hi All,

I'm trying to create a combined list of itemNames under "run", within each of the headers, if anyone can help please.

[b]Example List ..... More

Print this item

  Python Software Developer in Medical Imaging
Posted by: jcohenadad - Dec-17-2021, 02:03 AM - Forum: Jobs - Replies (1)

At the Neuroimaging Research Laboratory based at Ecole Polytechnique, University of Montreal, we work to better understand the brain and the spinal co..... More

Print this item

  Find overlapping date in database
Posted by: Hilal - Dec-16-2021, 04:18 PM - Forum: General Coding Help - Replies (2)

I have entered the start and end date and now I want to find the number of days which overlap with the start and end date in my database. I am having ..... More

Print this item

  Evaluating arithmetic expression with recursion.
Posted by: muddybucket - Dec-16-2021, 01:36 PM - Forum: General Coding Help - Replies (3)

Hi, I am tasked to make a recursive function which evaluates the expression starting from the given position. Return the value and the first position ..... More

Print this item

  import csv adding a header with pandas
Posted by: Soares - Dec-16-2021, 12:16 PM - Forum: Data Science - No Replies

Hi,

I'm importing a csv without a header. And I'm trying to tweak my script so that a header is included during load.

In addition to including t..... More

Print this item

  Trying to understand Numpy/array
Posted by: nabuchadresar - Dec-16-2021, 09:30 AM - Forum: General Coding Help - Replies (2)

Hi guys, it's on my first exercise list with Numpy.
That problem:
Consider the 3 arrays below
Return the value of the xarr array if the value is Tr..... More

Print this item

  How do you format Update statement with multiple conditions
Posted by: hammer - Dec-16-2021, 02:13 AM - Forum: General Coding Help - Replies (4)

Below shows a workableUpdate format for changing 1 field with 1 Where condition. I understand how the Bobby Table Format association works here.
Wha..... More

Print this item

Question Problem editing images
Posted by: ielcraft1 - Dec-16-2021, 01:32 AM - Forum: General Coding Help - Replies (2)

Hi, I am trying to make a program that edits images with python.
My difficulty is putting a png (no background) over the scene I want.
I am using th..... More

Print this item

  Problem : Count the number of Duplicates
Posted by: NeedHelpPython - Dec-16-2021, 12:42 AM - Forum: General Coding Help - Replies (3)

Problem : Count the number of Duplicates

Write a function that will return the count of distinct case-insensitive alphabetic characters and numeric d..... More

Print this item

  Trying to parse and work with the WhatsApp export of chats
Posted by: cubangt - Dec-15-2021, 11:00 PM - Forum: General Coding Help - Replies (6)

So i have been trying to parse or work with the export from WhatsApp chat history. I'm using that because i thought it would be a simple text format t..... More

Print this item

  beginner having text based adventure trouble
Posted by: mrgee - Dec-15-2021, 10:27 PM - Forum: Homework - Replies (2)

hi im new to python and am having trouble with coding.

Basically, I want to get to a point in the game that prints a lists (which ive done)
give a..... More

Print this item

  Parallel processing of multiple elements in list not working?
Posted by: amjass12 - Dec-15-2021, 03:18 PM - Forum: Code Review - No Replies

Hi,

I am trying to parallelise a function that will loop of over many millions of elements. It is a pearson correlation calculation of every colum..... More

Print this item

  Simple arithmetic question
Posted by: ebolisa - Dec-15-2021, 01:53 PM - Forum: General Coding Help - Replies (5)

Hi,

I'd like to round the number 12.13 to 12 and 12.45 to 13.
None of the following functions return the format I'm looking for. I guess I could u..... More

Print this item

  labels.append(self.classes.index(member.find('name').text))
Posted by: hobbyist - Dec-15-2021, 01:40 PM - Forum: General Coding Help - Replies (1)

Hello, I am following this tutorial: tutorial in order to train..... More

Print this item

  Calling a class from a function
Posted by: jc4d - Dec-15-2021, 08:04 AM - Forum: General Coding Help - Replies (5)

Hi all,

I'm pretty noob in python hence the question. Blush
Is it possible to call a class from a function?

Cheers,

Print this item

  Scraping the page without distorting content
Posted by: oleglpts - Dec-15-2021, 07:27 AM - Forum: Web Scraping & Web Development - Replies (5)

I am faced with the task of scraping a website page in such a way that its offline browser display matches the original page as closely as possible. A..... More

Print this item

Exclamation Python 3.10.1 32 Windows setup Virus behavior
Posted by: SapG20211215 - Dec-15-2021, 03:09 AM - Forum: News and Discussions - Replies (8)

Just installed

Python 3.10.1 (32-bit)
by
Python Software Foundation
v. 3.10.1150.0

and

Python Launcher
by
Python Software Foundation..... More


Attached Files

Thumbnail(s)
       
Print this item

  TypeError: missing a required argument: 'y'
Posted by: gible - Dec-15-2021, 02:21 AM - Forum: General Coding Help - No Replies

Hello everyone,
I am trying to plot a graph from the result of LSTM anomaly.

[python]fig, ax = plt.subplots(figsize=(16,12))
ax.plot(pd.to_datet..... More

Print this item

  outputtin a spreadsheet of float values
Posted by: Skaperen - Dec-14-2021, 11:38 PM - Forum: News and Discussions - No Replies

i am going to output an array of float values in the form of a spreadsheet. but i do have some extra space horizontally. should my output try to lin..... More

Print this item

Question How to understand the vector/direction
Posted by: mason321 - Dec-14-2021, 10:57 PM - Forum: General Coding Help - No Replies

In the following piece of code below, I need help understanding the vector and direction. Is the vector vv[0] = to the direction when its zero?

[p..... More

Print this item

  Store variable data and display sum after 60 seconds
Posted by: the_dude - Dec-14-2021, 07:13 PM - Forum: General Coding Help - Replies (11)

Hello, I'm currently reading and printing data from an arduino via serial USB in a loop and would like to store the data and add it up after 60 second..... More

Print this item

  operands could not be broadcast together with shapes (337,451) (225,301)
Posted by: kevinabbot - Dec-14-2021, 04:02 PM - Forum: General Coding Help - No Replies

So I am simply trying to take the 4th hour of data and subtract accumulated snow from the 3rd hour to get the snowfall in just the past hour. It is sa..... More

Print this item

Question Pygame 2 on Raspberry Buster
Posted by: jfng75 - Dec-14-2021, 03:37 PM - Forum: Game Development - Replies (3)

Hello,

I want to install Pygame 2 on a Raspberry Buster. I am using OS version 5.10.11.

It seems that I need to update SDL to be compatible with..... More

Print this item

  TypeError: cannot pickle
Posted by: n00sferatu - Dec-14-2021, 12:29 AM - Forum: General Coding Help - Replies (1)

Hey guys,

I only a junior in python, but I am trying to start 2 process that listen udp/tcp port. Basically I want to use multiprocessing for "tcp_..... More

Print this item

  Help needed with merging two CSV files
Posted by: eyadfr - Dec-13-2021, 10:49 PM - Forum: General Coding Help - Replies (5)

Hello,

I need your help with the below please 🙏

I have TWO ".CSV" files with the same number of columns and rows [b](257 columns and X rows)..... More

Print this item

  Bot refuses to count logs.
Posted by: M1racle - Dec-13-2021, 06:42 PM - Forum: General Coding Help - No Replies

@bot.channel_post_handler(content_types=['text','photo','audio','video','document'])
def posts_from_channels(message):
if True:
try:
messtext = st..... More


Attached Files

Thumbnail(s)
       
Print this item

  Anaconda pip install mpyc Error pip-script.py is not present
Posted by: Anldra12 - Dec-13-2021, 06:15 PM - Forum: General Coding Help - Replies (2)

I want o to install mpyc package using anaconda command prompt CMD. but it returns this error, How to address to solve such an..... More

Print this item

  webserver and pythonscript in 1 .py file ?
Posted by: Bicarbonaat - Dec-13-2021, 06:12 PM - Forum: Networking - No Replies

hello ,
i'm running this basic webserver and i can send and recieve data from a client via websockets.
this works like a sharm ( html+ javascriptco..... More

Print this item

  Requests Session Overwriting and cookie jar
Posted by: muzikman - Dec-13-2021, 02:22 PM - Forum: General Coding Help - No Replies

Greetings,

I have two questions in regards to the code below, I will make note of them inside the code itself.

[python]
session = requests.Sess..... More

Print this item

  P2 -> P3 : Errors
Posted by: wsHVM - Dec-13-2021, 01:50 AM - Forum: General Coding Help - Replies (1)

I have some code which I believe to be from Python 2 and need to move it to Python 3. I do not code in Python, or I stumble through very simple routin..... More

Print this item

  trying to edit a text file
Posted by: greatfella - Dec-13-2021, 12:02 AM - Forum: General Coding Help - Replies (9)

Something very simple is causing me to pull my hair out.

I want to search a simple text file for a string and replace it with another string.

th..... More

Print this item

  invalid syntax in my class
Posted by: CompleteNewb - Dec-12-2021, 11:56 PM - Forum: General Coding Help - Replies (2)

Hello, i've just written my first class ever and it doesn't work...

Here it is:

[python]class Player:

hand = []
playershand = []
..... More

Print this item

  positional argument: 'self'
Posted by: mcmxl22 - Dec-12-2021, 07:50 PM - Forum: General Coding Help - Replies (8)

I write the following code and get the following error.
[python]
import random

word_list = ['a', 'ranom', 'list', 'of', 'words']

class Word:
..... More

Print this item

  Modifying code
Posted by: cheburashka - Dec-12-2021, 07:14 PM - Forum: General Coding Help - Replies (1)

Is there a way to modify this code for it to search for the sentences generated to:
— always start with capitalized words ("This is beautiful.", "You..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  ShanePulse 13 minutes ago LewisByday LewisByday General Codin...
  TimsothyKat 1 hour ago Fobertsmene Fobertsmene General Codin...
  C++ program embedding Pyt... Yesterday, 18:27 Alexandros Gribouillis General Codin...
  403 Error 09-17, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576150
  Tutorial Requ... 497732
  Web Scraping ... 440093
  Newbie with P... 383907
  New Users Int... 366487
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 8174
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
marineoman Today
marineservice Today
bennyanderson482 Yesterday
AstoundzSEO Yesterday
tobey12 Yesterday

User Panel Messages

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