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,254
» Latest member: Gichardaxora
» Forum threads: 38,781
» Forum posts: 175,827

Full Statistics

Online Users
There are currently 32 online users.
» 2 Member(s) | 26 Guest(s)
Applebot, Google, Bing, kshahzad1985

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: paul18fr
34 minutes ago
» Replies: 4
» Views: 54
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
5 hours ago
» Replies: 6
» Views: 330
New to python and coding
Forum: Homework
Last Post: lary_p
10 hours ago
» Replies: 5
» Views: 152
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 99
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 231
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 359
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 139
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,637
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 238
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 231

 
  How to save some results in .txt file with Python?
Posted by: Melcu54 - May-25-2021, 08:25 PM - Forum: General Coding Help - Replies (4)

hello. I have this Python code, that makes a Parsing. But I want to save the results in the save.txt file. How can I do that? How to save python scree..... More

Print this item

  Reset seaborn
Posted by: ju21878436312 - May-25-2021, 05:38 PM - Forum: Data Science - Replies (2)

Hi there,

Following some tipps I somehow changed some global settings in seaborn and I would like to reset everything concerning seaborn and matplo..... More


Attached Files

Thumbnail(s)
   
Print this item

  [Solved] df.to_excel: certain rows
Posted by: ju21878436312 - May-25-2021, 05:11 PM - Forum: Data Science - Replies (2)

I would like to write only a few rows from a dataframe into an Excel file.
Is this possible directly when writing or do I have to define a new variab..... More

Print this item

  Tkinter reduce OptionMenu height
Posted by: euras - May-25-2021, 04:43 PM - Forum: GUI - Replies (2)

Hi, is there a way to reduce OptionMenu height? Mine are equal to height=1, but they looks still bigger than the rest of Entry. It does not look very ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Sampling and quantization
Posted by: asif21 - May-25-2021, 02:17 PM - Forum: News and Discussions - No Replies

Hi, I have generated a QPSK signal and sucessfully performed OFDM. I am now trying to sample and quantize (ADC action) on the output complex array. Bu..... More

Print this item

  Passing variable to function.
Posted by: KDog - May-25-2021, 01:49 PM - Forum: GUI - Replies (2)

Hi all. I have an app that displays live webcam feed. I have created a brightness slider that almost works. It changes the frame brightness but then t..... More

Print this item

  Unable to install Python
Posted by: branty1970 - May-25-2021, 11:21 AM - Forum: General Coding Help - Replies (5)

I've been using Python for years and have been given a new laptop by my employer. It had Python 3.6 installed and I wanted to go for a more recent ver..... More

Print this item

  Using Keyboard Arrow Keys
Posted by: rturus - May-25-2021, 11:07 AM - Forum: Game Development - Replies (3)

How can I user keyboard arrows keys to move the catcher (box in the game) to the right and left?

Thanks.

[python]
# Bomb Catcher Game


impo..... More

Print this item

  Python Variables and Sqlite3 Database
Posted by: Staples200 - May-25-2021, 12:56 AM - Forum: General Coding Help - Replies (1)

Is there any way to pull each column entry and make each db entry it's own variable? I know how to pull a single entry at a time using something like..... More

Print this item

  Try Python without dots!
Posted by: Gribouillis - May-24-2021, 07:06 PM - Forum: Code sharing - Replies (5)

I uploaded a single-file module adddot.py here https://sourceforge.net/projects/adddot/. With it y..... More

Print this item

  Calculate time taken to cool down a pool in python
Posted by: edwinostby - May-24-2021, 04:12 PM - Forum: Homework - No Replies

0


I'm taking a programming class in python so i'm a beginner. We got an assignment where we were supposed to calculate and plot the time taken fo..... More

Print this item

  Adding variable to Python code - media sentiment analysis
Posted by: Marietje - May-24-2021, 02:23 PM - Forum: General Coding Help - Replies (3)

Hello everyone!

I was wondering if you could help a student out :)

My name is Marie and I am currently studying Strategic Management at the Eras..... More


Attached Files

.xlsx   Sentiments Example Find & Pivot 3.xlsx (Size: 12.72 KB / Downloads: 433)
Print this item

  100$ bounty: python and xml/xsd knowledge
Posted by: aster - May-24-2021, 01:36 PM - Forum: Jobs - No Replies

Is someone interested in this bounty?
More detail here: https://www.bountysource.com/issues/9827...patibility

Print this item

  Calling python from c++ in visual studio
Posted by: pdk5 - May-24-2021, 10:18 AM - Forum: General Coding Help - No Replies

Hello,

Im trying to call a Python function "fun"in the Sample.py from the c++ console program in visual studio 2019.
The Sample.py works for small..... More

Print this item

  Question about change hex string to integer sting in the list (python 2.7)
Posted by: lzfneu - May-24-2021, 08:21 AM - Forum: General Coding Help - Replies (1)

Hi all,

My attached short python 2.7 code in the attachment output a hex string in the list:
['0x74', '0x65', '0x73', '0x74']

I tried and have ..... More


Attached Files

.py   test.py (Size: 151 bytes / Downloads: 369)
Print this item

  Frame with treeview
Posted by: virencm - May-24-2021, 07:01 AM - Forum: GUI - Replies (5)

Hi all,

I am a new to Python but i can see possibilities that can make job easier!

Can someone point me in the correct direction please?

Atta..... More


Attached Files

.py   FRAME_PY.py (Size: 826 bytes / Downloads: 553)
Print this item

Question How to get the PID from a process at first
Posted by: mapg - May-24-2021, 02:47 AM - Forum: General Coding Help - Replies (2)

I have a question about how to get the PID from a process at first, not when the process has finished.

This is because I want to be able to kill th..... More

Print this item

  Converting data object
Posted by: mbrown009 - May-23-2021, 11:29 PM - Forum: General Coding Help - Replies (5)

I am pulling a csv from a database. With that the date is an object, I am attempting to convert it to be in datetime64[ns].

My code is as follows:..... More

Print this item

  convert digits until a non-digit
Posted by: Skaperen - May-23-2021, 10:42 PM - Forum: News and Discussions - No Replies

i want to convert a string of digits (with maybe one fraction point for float) to a numeric and stop at the first digit that is not convertible so the..... More

Print this item

  Reading data from mysql.
Posted by: stsxbel - May-23-2021, 05:58 PM - Forum: General Coding Help - Replies (2)

there is a table, let's call it test. The table has columns (let's call id, date, name1, name2). The data is entered into the table. Tell me how to co..... More

Print this item

Exclamation tic tac toe loop
Posted by: ilikedofs - May-23-2021, 04:22 PM - Forum: Homework - Replies (2)

I've been having troubles with getting a loop for tic tac toe
here is the code
[python]board = [1, 2, 3, 4, 5, 6, 7, 8, 9]
print("Welcome to Tic-T..... More

Print this item

  Closing a program using a G10 button
Posted by: MBDins - May-23-2021, 10:30 AM - Forum: General Coding Help - Replies (2)

I am looking for a Python script to close a program using a push button connected to a G10 pin on a Raspberry Pi4. Can anybody help please?

Print this item

Exclamation New Code
Posted by: r_anees - May-23-2021, 06:02 AM - Forum: General Coding Help - Replies (4)

[python]name1 = input('Please enter your name: ')
if name1 == str (anees) or str (clow) :
print( 'Authentication Success, You are allowed ..... More

Print this item

  python logrotate adding other handlers
Posted by: RRR - May-23-2021, 06:02 AM - Forum: General Coding Help - No Replies

Hi , I am new to python. I am trying to have a logrotate feature and also try to print the logs in formatted fashion.
So I have created two handlers ..... More

Print this item

  BeautifulSoup
Posted by: andre_kadomoto - May-23-2021, 04:54 AM - Forum: Web Scraping & Web Development - Replies (5)

Hello, guys!

Need a little help here...
I've tried many ways, but I couldn't hack it..

I need to extract a list of the titles in the html below
The ..... More

Print this item

  Python LogisticRegression
Posted by: albertjblack - May-23-2021, 04:25 AM - Forum: General Coding Help - Replies (1)

Hello can anyone help
I do not understand what is happening here...
I do not understand what is happening here... PYTHON CODE

[python]
for i..... More


Attached Files

.py   logistic_regression.py (Size: 2.92 KB / Downloads: 352)
.csv   data.csv (Size: 10.67 KB / Downloads: 393)
Print this item

Shocked School project -- need help with it it says syntax error
Posted by: XPGKNIGHT - May-23-2021, 03:50 AM - Forum: Homework - Replies (6)

Hi,

I have a year 7 school project due in 1 week. Cant figure out why it wont work. Please help. The program I use wont tell me where the error is...... More

Print this item

  Setting the x-axis to a specific column in a dataframe
Posted by: devansing - May-23-2021, 12:11 AM - Forum: Data Science - No Replies

Hi,

I am trying to update the x-axis on a line chart that contains two y-axes. The data is being read from two separate Excel files and the column..... More


Attached Files

.xlsx   test_END.xlsx (Size: 10.54 KB / Downloads: 0)
.xlsx   test_START.xlsx (Size: 20.35 KB / Downloads: 0)
Print this item

  What does this code?
Posted by: Elvin - May-22-2021, 08:22 PM - Forum: Homework - Replies (4)

Hello,


What does is this code doing?

[python]def what(n):
if n<10:
return n
else:
k = what((n//100)*10 + n%10)
return (k*10..... More

Print this item

  Scraping based on years BeautifulSoup
Posted by: rhat398 - May-22-2021, 06:42 PM - Forum: Web Scraping & Web Development - No Replies

I am practicing my python skills by scraping different websites and I came across The Hacker News Website I manage to scrape the article's title, link..... More

Print this item

  Is that code correct?
Posted by: Sameh - May-22-2021, 01:43 PM - Forum: Homework - Replies (7)

Hi there,

This is my first participation. to answer ►How many miles are there in 10 kilometers?
Is this way correct:

[python]
miles_in_kilome..... More

Print this item

  curses issue
Posted by: otalado - May-22-2021, 08:12 AM - Forum: General Coding Help - Replies (2)

I have a fresh install of Debian 10 /lxde. The installed Python3 version is 3.7.3 I intended to learn how to use the curses with Python (https://docs...... More

Print this item

  Help with autostart
Posted by: homac - May-22-2021, 06:44 AM - Forum: General Coding Help - Replies (1)

Have a question about autostarting a screen change. The command below works perfectly...

xrandr --output HDMI-1 --scale-from 1600x960 --display :0..... More

Print this item

  arduino and colaboratory with wifi
Posted by: rithikreddypalla - May-22-2021, 06:21 AM - Forum: General Coding Help - No Replies

Does anyone have an idea into how to read and write data to google colaboratory from Arduino with wifi?
Thank You.

Print this item

  Selecting the first occurrence of a duplicate
Posted by: knight2000 - May-22-2021, 03:10 AM - Forum: General Coding Help - Replies (8)

Hi all,

I'm new to coding and thought I would try and practice a little website scraping.

I've come across an instance where an element (?) I'..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 34 minutes ago paul18fr paul18fr General Codin...
  Backward compatibility qu... 5 hours ago yutaozhou noisefloor News and Disc...
  New to python and coding 10 hours ago lary_p lary_p Homework
  why is the image not show... Yesterday, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 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
Most views
  The best Prog... 578920
  Tutorial Requ... 510140
  Web Scraping ... 441938
  Newbie with P... 385957
  New Users Int... 376749
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Gichardaxora Today
cc123 Today
Jessicaadams Today
ftk456 Yesterday
sarbogast Yesterday

User Panel Messages

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