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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 37 Guest(s)
Bing, Google, Applebot

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 3
» Views: 71
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
7 hours ago
» Replies: 3
» Views: 90
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 63
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 97
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,019
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,550
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 178
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,192
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,437

 
  df.to_csv('saved_data.csv')
Posted by: Led_Zeppelin - Sep-10-2022, 11:03 PM - Forum: General Coding Help - Replies (1)

I I want to save a dataframe to a csv file I would use:

df.to_csv('saved_data.csv')
or do I use

[code]
df4.to_csv('saved_da..... More

Print this item

  Logging in many submodules
Posted by: veysel - Sep-10-2022, 07:22 PM - Forum: General Coding Help - No Replies

Let's say I have 20 modules, and I want to log all messages in this modules.

For example

Project
-- package1
-- test1.py
-- test..... More

Print this item

Sad Find Longest streak for habits
Posted by: johnconar - Sep-10-2022, 05:30 PM - Forum: Homework - Replies (3)

HI
I am creating a habit tracking application and have to find the longest Streak for a given habit. for ex:- if a user swim for 5 straight days tha..... More

Print this item

Sad how to validate user input from database
Posted by: johnconar - Sep-10-2022, 05:21 PM - Forum: General Coding Help - Replies (3)

hi
i am creating a application i want to verify the user input name from my database.


These are my Two table

[python]
def create_tables(db):..... More

Print this item

  file transfer via python SFTP SCP
Posted by: mg24 - Sep-10-2022, 04:36 AM - Forum: General Coding Help - Replies (3)

Hi Team,

I am transfering csv files to cloud via SFTM transfer.
below code is works when i use subprocess.Popen


but doesnt work if i use run ..... More

Print this item

  Confused with Pygame documentation. (Newbie here)
Posted by: monkeydesu - Sep-10-2022, 04:07 AM - Forum: Game Development - Replies (3)

Sorry, I'm new and really confused by a few things with the tutorial I'm using. I've been looking for answers for like 3 hours. Please help!

[pytho..... More

Print this item

  Basic experiment with the bdb module
Posted by: Gribouillis - Sep-09-2022, 04:53 PM - Forum: Code sharing - Replies (2)

The standard module bdb deserves to be more widely known. I'm experimen..... More

Print this item

  Facing problem with Pycharm - Not getting the expected output
Posted by: amortal03 - Sep-09-2022, 04:35 PM - Forum: General Coding Help - Replies (1)

Hi there!
I am a beginner who is very interested in learning Python.
So, I have written the following code in pycharm.
[python]project = 'course ..... More


Attached Files

Thumbnail(s)
   
Print this item

  cv2 error
Posted by: dankochkurov - Sep-09-2022, 07:30 AM - Forum: Data Science - No Replies

Hello! I am doing object recognition on a windows system.
I have a code:
import cv2

[python]img = cv2.imread('Doroga_na_ylitce1.jpg')

classNam..... More


Attached Files

.py   real_time_object_detection.py (Size: 607 bytes / Downloads: 2)
Print this item

  help with adding duplicates elements together in a list
Posted by: 2ECC3O - Sep-09-2022, 03:03 AM - Forum: Homework - Replies (5)

given a list(just an example list, the actual test list is much MUCH longer)

d = [6610013121,4,6610021021,5, 6610021021,5,6610061121,5, 6610061121,5,..... More

Print this item

  Module not found question
Posted by: sighhhh12 - Sep-09-2022, 02:36 AM - Forum: General Coding Help - No Replies

Hello,
New to python,I'm used to Matlab and Arduino. I have 3.10.6 python,and just downloaded current version of spyder.
All I'm trying to do is read ..... More

Print this item

  Saving progress in a Python program to use later
Posted by: Led_Zeppelin - Sep-08-2022, 06:16 PM - Forum: General Coding Help - Replies (9)

I have a program that takes forty-five minutes to run. That makes it harder to debug.

It takes 40 minutes to get to the critical area. If I do not..... More

Print this item

  Compound if else statement
Posted by: Led_Zeppelin - Sep-08-2022, 12:42 PM - Forum: General Coding Help - Replies (8)

I am using the following statement in my program

[code]
df2["machine_status"] = df2["machine_status"].map(
lambda x: 0
if x == "NORMAL"..... More

Print this item

  GUI does not appear
Posted by: flash77 - Sep-08-2022, 12:29 PM - Forum: GUI - Replies (5)

Hi,
I'm using Pycharm and QT-Designer - I'm totally new to QT-Designer...

I did an example from a python book - it was about to create a GUI, in w..... More


Attached Files

.py   hauptdialog.py (Size: 6.27 KB / Downloads: 281)
.py   main.py (Size: 1.13 KB / Downloads: 261)
Print this item

  Sort of a general "best practices" question
Posted by: malonn - Sep-08-2022, 09:11 AM - Forum: News and Discussions - Replies (2)

Hi, I am writing an email client in Python (of course) 3. But, I wonder something. I want to remove security vulnerabilities from HTML emails. I kn..... More

Print this item

  How to assign a value to pandas dataframe column rows based on a condition
Posted by: klllmmm - Sep-08-2022, 06:07 AM - Forum: General Coding Help - No Replies

Hello,

I want to assign a value in "Value" column into a new column and up to all next empty rows until next value comes. My expected value is avai..... More

Print this item

  Error with pip install
Posted by: coffeeguy - Sep-07-2022, 11:16 PM - Forum: General Coding Help - Replies (1)

3rd week learning python. I am trying to pip install pyperclip. When I run this in the command prompt I am getting a permission error -

Permission..... More

Print this item

  Play Midi Keyboard using fluidsynth and soundfonts
Posted by: Axel_Erfurt - Sep-07-2022, 08:17 PM - Forum: Code sharing - No Replies

A GUI using PyQt5 for choosing soundfont and play midi keyboard with fluidsynth.

The (QProcess) command must be adapted accordingly for operating s..... More

Print this item

Sad Newbie needs help part 2
Posted by: dvejsa - Sep-07-2022, 07:12 PM - Forum: General Coding Help - Replies (14)

Hello once again guys! im back with yet another question regarding my car script :P
some text or all text is in Swedish, I apoligize for that :D
Im ..... More

Print this item

  How to print the output of a defined function
Posted by: bshoushtarian - Sep-07-2022, 06:42 PM - Forum: General Coding Help - Replies (4)

How to print the output of make_matrix function defined in the following code:

[python]from typing import List, Callable
Matrix = List[List[float]..... More

Print this item

  Tkinter + Multiprocessing startmap makes UI Freeze
Posted by: sunny9495 - Sep-07-2022, 05:13 PM - Forum: General Coding Help - Replies (4)

Hi,

the UI freezes when apply the following code to the tkinter

[code]
from selenium import webdriver
from selenium.webdriver.chrome.options i..... More

Print this item

  Match and extract if found
Posted by: Calli - Sep-07-2022, 05:00 PM - Forum: General Coding Help - Replies (21)

For instance I have a list of IP address in one file IPfile1.txt

192.168.0.1
192.168.0.2
192.168.0.3
2001:4800:7819:104:be76:4eff:fe04:5819
192..... More

Print this item

  Scraping and breaking out of Loop
Posted by: giddyhead - Sep-07-2022, 02:41 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello everyone, Need your help with the following script the problem I am running into it pages down in a continuous loading page, until it reaches th..... More

Print this item

  Telegram bot python help!
Posted by: wolfdevs - Sep-07-2022, 11:34 AM - Forum: General Coding Help - No Replies

Hello guys. I want to do a project but I couldn't find a resource.

For example;

Is it possible to make 50 telegram accounts speak like a real us..... More

Print this item

  How can histogram bins be separated and reduce number of labels printed on x-axis?
Posted by: cadena - Sep-07-2022, 12:50 AM - Forum: General Coding Help - Replies (1)

I have a series of Counter() whose graphs I want to plot. The issue is that there are around 120 to 150 bars that are plotted. I've tried playing with..... More


Attached Files

Thumbnail(s)
       
Print this item

  dnload/upload with FTP
Posted by: ebolisa - Sep-06-2022, 11:01 PM - Forum: General Coding Help - Replies (4)

Hi,

What's the right syntax to connect to a ftp server and download a file?
The following code cannot find the file however, I can with a ftp clie..... More

Print this item

  Feature Extraction and Modeling Pipeline
Posted by: FelixLarry - Sep-06-2022, 09:44 PM - Forum: Code sharing - Replies (1)

[python]# Create a pipeline that extracts features from the data then creates (evaluates) a model
import pandas as pd
import numpy as np
from sklea..... More

Print this item

  Automate Machine Learning Workflows with Pipelines
Posted by: FelixLarry - Sep-06-2022, 09:37 PM - Forum: Code sharing - No Replies

[python]# Create a pipeline that standardizes (prepares) the data then evaluates a model
import pandas as pd
import numpy as np
from sklearn.model_..... More

Print this item

  Regular Expression search to comment lines of code
Posted by: Gman2233 - Sep-06-2022, 09:36 PM - Forum: General Coding Help - Replies (5)

Hello!

I'm hoping you guys can help me with a thorny issue I'm having.
I'm a beginner, not having touched Python since University 12 years ago :-)..... More

Print this item

  Choosing the Best Machine Learning Model
Posted by: FelixLarry - Sep-06-2022, 09:30 PM - Forum: Code sharing - Replies (1)

[python]# Comparing classification algorithms
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection ..... More

Print this item

  Compare Machine Learning Regression Algorithms Consistently
Posted by: FelixLarry - Sep-06-2022, 09:25 PM - Forum: Code sharing - No Replies

[python]# Comparison of Regression Algorithms
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection ..... More

Print this item

  how often do you reboot your computer?
Posted by: Skaperen - Sep-06-2022, 07:21 PM - Forum: Bar - Replies (7)

how often do you reboot your computer?

any computer you have. or reinstantiate a cloud instance.

i reboot my Xubuntu 20.04 laptop about weekly...... More

Print this item

Thumbs Up Newbie needs help
Posted by: dvejsa - Sep-06-2022, 07:09 PM - Forum: General Coding Help - Replies (5)

Hello guys,

Im just learning Pyhton and doing a code in Replit.. I think Im doing ok so far but Im stuck on a thing that maybe some one here might ..... More

Print this item

  How are these while loops being used?
Posted by: thefatron - Sep-06-2022, 06:44 PM - Forum: Homework - Replies (3)

Very new to programming and simply dont understand how this while loop is being used? Is the itr=itr.next the condition that needs to be maintained? I..... More

Print this item

  Get iPhone Location
Posted by: AlphaInc - Sep-06-2022, 04:32 PM - Forum: General Coding Help - No Replies

Hello everybody,

I'm trying to write a script that first checks some ips of mine (phone, pc, etc.) which are stored in a json file to "confirm" tha..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 4 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 7 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578672
  Tutorial Requ... 509060
  Web Scraping ... 441834
  Newbie with P... 385782
  New Users Int... 375019
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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