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,245
» Latest member: cruisesfares
» Forum threads: 38,779
» Forum posts: 175,808

Full Statistics

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

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
20 minutes ago
» Replies: 8
» Views: 195
Can I Get a Full Refund I...
Forum: Board
Last Post: cruisesfares
1 hour ago
» Replies: 0
» Views: 8
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
3 hours ago
» Replies: 5
» Views: 206
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
10 hours ago
» Replies: 2
» Views: 63
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 76
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,596
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 168
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 160
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,637
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,400

 
Brick how to work with 2 or more related tables in a Post request
Posted by: ikurorox - Dec-05-2021, 01:01 AM - Forum: Web Scraping & Web Development - No Replies

How to work with 2 or more related tables in a Post request?


I have 3 tables:

  • Employee (access for Standart Users)
  • CustomUser (ac..... More

Print this item

  VScode problem with output window
Posted by: chipx - Dec-04-2021, 09:59 PM - Forum: Bar - Replies (2)

I hope I'm in the right place for this type of question....
Hello, I use VScode with Python and Code Runner and the problem that I can not solve is ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Delete multiple comments with a single API call (facebook)
Posted by: Ascalon - Dec-04-2021, 08:33 PM - Forum: General Coding Help - No Replies

Hi, currently to delete comments on posts in my facebook page I'm using the following code, which deletes one comment at a time, that is making an API..... More

Print this item

  what makes bytes so difficult to do?
Posted by: Skaperen - Dec-04-2021, 08:27 PM - Forum: News and Discussions - Replies (6)

what makes bytes so difficult to do? or is it an issue with Decimal type?
[output]
lt2a/forums /home/forums 6> python3
Python 3.6.9 (default, Jan ..... More

Print this item

  add the suffix to the next line
Posted by: Paulman - Dec-04-2021, 05:55 PM - Forum: General Coding Help - Replies (2)

Hi,

Does anybody know the shortest command to add a suffix to the header of several columns below the header and not on the same line?

I have th..... More

Print this item

  Regex problem
Posted by: bontwoody - Dec-04-2021, 04:58 PM - Forum: Data Science - Replies (3)

Im having some difficulty understanding regex patterns. After reading around I constructed the following pattern.

['^.?RE..D$']

My understanding..... More

Print this item

  Filter dataframe by datetime.date column
Posted by: glidecode - Dec-04-2021, 03:37 PM - Forum: General Coding Help - Replies (2)

I usually filter for data like this: df[df.somecolumn > 10]

However, I haven't been able to do this for a column I have in type "datetime.date"

If I..... More

Print this item

  Import requests/beautifulsoup problem
Posted by: Jokadaro_ - Dec-04-2021, 02:15 PM - Forum: General Coding Help - Replies (3)

Hey everyone,
Since yesterday I've been trying to solve a problem from Practicepython.org (exactly the 17), that needs to import requests and beautif..... More


Attached Files

Thumbnail(s)
   
Print this item

  Assigning a new value to variable
Posted by: uriel - Dec-04-2021, 12:24 PM - Forum: General Coding Help - Replies (1)

How can I assign the result (res) of the calulation to the variable "memory" and then check if the user input is "M" and if so, then set [python]x or ..... More

Print this item

  How to compile this graphing program to an exe file?
Posted by: plumberpy - Dec-04-2021, 10:15 AM - Forum: GUI - Replies (7)

[python]import matplotlib.pyplot as plt

x = [1, 2, 3]
y = [2, 4, 1]

plt.xlabel('x - axis')
plt.ylabel('y - axis')
plt.title('My first graph!'..... More

Print this item

  Call a bash script from within a Python programme
Posted by: Pedroski55 - Dec-04-2021, 12:08 AM - Forum: General Coding Help - Replies (6)

I have a lot of students. I keep all their results in an Excel file.

As the term goes on, this Excel file gets more and more columns.

Some stude..... More

Print this item

  beginner needs PyGame advice
Posted by: barryjo - Dec-03-2021, 09:25 PM - Forum: General Coding Help - Replies (4)

I am a beginner and want to learn Python and I want to get started the correct way. I am using Windows 10 and have installed python 3.8.

1) It was ..... More

Print this item

  Can't compare two strings
Posted by: uriel - Dec-03-2021, 06:46 PM - Forum: General Coding Help - Replies (2)

Hello, I can't check if this string "operation = str(lst[1])" is equal to a mathematical symbol and that the check is carried out indefinitely:

[py..... More

Print this item

  Use of groupby in a function with Pandas
Posted by: Paulman - Dec-03-2021, 04:56 PM - Forum: General Coding Help - No Replies

Hello,

I'm totally stuck with a task on using groupby in a dataframe.

I have the following df in a csv file 'athletes.csv:

,forename,surname,..... More

Print this item

  paragraphs in textfile not detected
Posted by: G_rizzle - Dec-03-2021, 04:07 PM - Forum: Data Science - Replies (3)

Hi!


i have a problem that i cant solve by myself. I wanna read-in a big textfile (>300mb) as a df. Die File consists of coordinates, that are sep..... More

Print this item

  Output from Paramiko exec_command from channel
Posted by: pemca - Dec-03-2021, 12:25 PM - Forum: General Coding Help - No Replies

Hi,

I'm new to python and Paramiko.
I want do do an SSH login to a Oracle SBC, which only supports keyboard interactive login.
I have found som c..... More

Print this item

  How to clean UART string
Posted by: Joni_Engr - Dec-03-2021, 11:36 AM - Forum: General Coding Help - Replies (4)

Hi,

I am saving the UART data in the text file which appear as.

b' All is well '

How can I remove the b' in the start and ' at the end ?

Print this item

Star Program workflow tool
Posted by: paul18fr - Dec-03-2021, 08:53 AM - Forum: General Coding Help - No Replies

All
I'm wondering what type of graphical tool I Can use to build workflow of a project (involving modules, dozains of functions, external programs an..... More

Print this item

  Error When Trying To Read CSV File
Posted by: kaega2 - Dec-03-2021, 06:38 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

I'm just learning Python for the first time and am going through the tutorial on Learnpython.org. I'm getting this weird error. I d..... More

Print this item

  numpy masking/filtering
Posted by: nilamo - Dec-03-2021, 04:32 AM - Forum: Data Science - Replies (3)

I'm working on a project where I'm using numpy for generative art, and I've got a question with how to filter an array without copying the data (so th..... More

Print this item

  Process the image on the Python HTTP server
Posted by: Aleks - Dec-02-2021, 11:43 PM - Forum: General Coding Help - No Replies

Python 3.9. Local http.server 127.0.0.1:9001. I need to take an image, then save it to disk. The program that sends the image sends it with a POST req..... More

Print this item

  Regex format issue?
Posted by: bontwoody - Dec-01-2021, 08:27 PM - Forum: Data Science - Replies (3)

Hi

Im trying to do a regex search on an sqlite database where the expressions are held in a list. I have the connection working as shown by the fir..... More


Attached Files

.py   Forumpost.py (Size: 706 bytes / Downloads: 2)
Print this item

  Unknown Error with Random Stat Assigner
Posted by: FC8 - Dec-01-2021, 05:29 PM - Forum: General Coding Help - Replies (6)

So, essentially, I am trying to make a simple program in python 3 (using CodeHS, if that matters) for a theoretical RPG concept. Basically, it is supp..... More

Print this item

  Matplotlib - close multple plots with user input
Posted by: Positron79 - Dec-01-2021, 05:26 PM - Forum: General Coding Help - No Replies

Hi,

I have a script that is reading CSV files. Plots 9 graphs at once. I would like for the user to press enter so that all plots close at once. IT..... More

Print this item

  My code won't say Player wins or computer wins. No errors.
Posted by: its_a_meLuigi64 - Dec-01-2021, 04:32 PM - Forum: General Coding Help - Replies (2)

[python]#!/bin/python3

from random import randint

player = input('Paper(p), Scissors(s), or Rock®.')

print(player, 'vs', end= ' ')
chosen ..... More

Print this item

  for loop in dataframe in pandas
Posted by: Paulman - Dec-01-2021, 02:35 PM - Forum: General Coding Help - Replies (7)

Hello,

I have a problem with a "for loop" using a dataframe in pandas, hope somebody can help with that.

I have the following dataframe in a csv..... More

Print this item

  Pyspark - my code works but I want to make it better
Posted by: Kevin - Nov-30-2021, 11:59 PM - Forum: General Coding Help - Replies (1)

please delete this post char limit

Print this item

  xlsx
Posted by: FMA - Nov-30-2021, 09:54 PM - Forum: General Coding Help - Replies (1)

Hi,

I've got a problem and i need some help.
I just want to manipulate an xlsx file with Python (see PJ), like
if cells.value(2,2) == cells.val..... More


Attached Files

.xlsx   Document_excel_2.xlsx (Size: 8.7 KB / Downloads: 344)
Print this item

  explosion-animation
Posted by: hespa - Nov-30-2021, 07:07 PM - Forum: Game Development - Replies (5)

Dear forum members,
I have worked through the pygame tutorial by metulburr (without
state maschines) and now wanted to add a nice explosion to the l..... More

Print this item

  combine tables
Posted by: joelsmit - Nov-30-2021, 05:35 PM - Forum: General Coding Help - Replies (1)

I need your help in creating a table; I have 2 tables that show an average of 5 minutes, one of throughput and another of # of IOPS (operations per se..... More

Print this item

  Python Discrepancy
Posted by: murtuza - Nov-30-2021, 05:32 PM - Forum: Data Science - No Replies

Hi I am Working in Company where i have data in Mongodb database and every month our credit team provide me the disbursement file so i have to write a..... More

Print this item

  Get the Client-Side TLS ?
Posted by: JohnnyCoffee - Nov-30-2021, 04:10 PM - Forum: General Coding Help - Replies (1)

Does anyone know how I can capture the client’s TLS using the ssl module, because I need to be able to negotiate the TLS version to be used in an SSL ..... More

Print this item

  Need a little help with numpy array magic.
Posted by: pmf71 - Nov-30-2021, 03:55 PM - Forum: General Coding Help - No Replies

Hello friends,

I am struggling with an array. It's a simple array containing rgb bitmap information, as retrieved via the opencv 2 imread method. Its..... More

Print this item

  IMAGE URL
Posted by: satyanarayana - Nov-30-2021, 11:43 AM - Forum: General Coding Help - Replies (6)

Hi friends,

"D:/Satya_Projects_Onedrive/Epigon_Projects/BILVA_Projects/waveform.png"

I have local image file with path as shown above . I hav..... More

Print this item

  re.search Q
Posted by: ebolisa - Nov-30-2021, 11:12 AM - Forum: General Coding Help - Replies (12)

Hi,

I'm trying to extract info from a web form (request) but I get the error shown below.
I know group() exists so, I cannot understand the error...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 20 minutes ago tsgiannis Gribouillis GUI
  Can I Get a Full Refund I... 1 hour ago cruisesfares cruisesfares Board
  Backward compatibility qu... 3 hours ago yutaozhou Gribouillis News and Disc...
  Help with Serial.write in... 10 hours ago racingsubby racingsubby General Codin...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578774
  Tutorial Requ... 509609
  Web Scraping ... 441890
  Newbie with P... 385876
  New Users Int... 375637
Most reputation
buran 581
snippsat 510
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+ 12103
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
cruisesfares Today
thebigback Yesterday
dimitriwati Yesterday
johnsonlucas83 Yesterday
ColorTig Yesterday

User Panel Messages

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