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,497
» Latest member: kaiquesoumac
» Forum threads: 38,581
» Forum posts: 174,826

Full Statistics

Online Users
There are currently 692 online users.
» 0 Member(s) | 683 Guest(s)
Google, Bing, Facebook, Yandex, Apple

Latest Threads
Is Python used to make po...
Forum: Game Development
Last Post: Arush
4 hours ago
» Replies: 16
» Views: 31,497
Looking for ideas
Forum: Bar
Last Post: Arush
5 hours ago
» Replies: 1
» Views: 305
Languages
Forum: General Coding Help
Last Post: Arush
5 hours ago
» Replies: 2
» Views: 91
problems with netcdf if I...
Forum: General Coding Help
Last Post: leo54
10 hours ago
» Replies: 17
» Views: 1,558
Pip help
Forum: General Coding Help
Last Post: leo54
10 hours ago
» Replies: 5
» Views: 623
How To Attach data Files
Forum: Board
Last Post: leo54
10 hours ago
» Replies: 4
» Views: 4,217
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
May-21-2025, 07:49 AM
» Replies: 8
» Views: 21,273
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
May-21-2025, 06:08 AM
» Replies: 3
» Views: 588
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
May-20-2025, 12:26 PM
» Replies: 13
» Views: 28,846
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,954

 
  Python crawler reports errors for some Chinese characters
Posted by: yliu315 - Sep-11-2022, 06:17 PM - Forum: Web Scraping & Web Development - No Replies

I have a python crawler that downloads Baidu index data for the search keywords I provide. It works for most Chinese characters. When it comes to some..... More

Print this item

  Folding in ATOM
Posted by: XavierPlatinum - Sep-11-2022, 05:34 PM - Forum: General Coding Help - Replies (5)

All of a sudden the folding doesn't work right in ATOM. I must have hit something or a hotkey I didn't mean to. Some things fold and others don't. ..... More

Print this item

  Add one to binary string
Posted by: uwl - Sep-11-2022, 04:25 PM - Forum: General Coding Help - Replies (2)

I have a string with the value '0101', it is a binary number. I wish to add one bit to it in order to obtain '0110'. Is someone able to help me accomp..... More

Print this item

  Need Help: FileNotFoundError:[Errno 2] No such file or directory
Posted by: python202209 - Sep-11-2022, 03:21 PM - Forum: General Coding Help - Replies (5)

I save a txt file with name 1pytest.txt and python the codes as a python file with name 1py.py in the same folder c:\Users\tiger\Downloads\

[python..... More


Attached Files

Thumbnail(s)
       
Print this item

  Word game revisited
Posted by: menator01 - Sep-11-2022, 07:42 AM - Forum: Code sharing - Replies (1)

hangman/word guessing game with tkinter

words.txt:
https://my-python.org/files/python/words.txt

[python]
#! /usr/bin/env python3
import rando..... More

Print this item

  (python) Can i get some help fixing a English to Morse translator? Pls
Posted by: AlexPython - Sep-11-2022, 04:40 AM - Forum: General Coding Help - Replies (8)

The problem that I have is that when I type a message for example (hello) instead of only translating those words the program would translate from the..... More

Print this item

  Help on ModuleNotFoundError
Posted by: JonWayn - Sep-11-2022, 03:45 AM - Forum: General Coding Help - No Replies

I cant seem to get import commands to work unless I'm working from the same folder as the file I want to import. What is puzzling is that sys.path lis..... More

Print this item

  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: 247)
.py   main.py (Size: 1.13 KB / Downloads: 230)
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

User Panel Messages

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