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,498
» Latest member: OLanePulse
» Forum threads: 38,593
» Forum posts: 174,874

Full Statistics

Online Users
There are currently 730 online users.
» 1 Member(s) | 723 Guest(s)
Bing, Google, Applebot, Yandex, Baidu, OLanePulse

Latest Threads
Dichaelmag
Forum: General Coding Help
Last Post: OLanePulse
2 minutes ago
» Replies: 0
» Views: 5
Simple webbot for testing
Forum: Jobs
Last Post: Arush
2 hours ago
» Replies: 1
» Views: 1,005
Using moviepy fails due t...
Forum: General Coding Help
Last Post: sheepog
2 hours ago
» Replies: 2
» Views: 164
Nested Dictionaries, good...
Forum: General Coding Help
Last Post: snippsat
2 hours ago
» Replies: 5
» Views: 347
Script broke with Python ...
Forum: Code sharing
Last Post: Arush
2 hours ago
» Replies: 5
» Views: 6,213
Mathematica code vs Pytho...
Forum: General Coding Help
Last Post: Arush
2 hours ago
» Replies: 1
» Views: 868
Looking for ideas
Forum: Bar
Last Post: Arush
3 hours ago
» Replies: 3
» Views: 546
Pillow _getexif for pytho...
Forum: General Coding Help
Last Post: StephenTuh
9 hours ago
» Replies: 3
» Views: 29,163
[SOLVED] Open file, and i...
Forum: General Coding Help
Last Post: Winfried
Today, 07:56 AM
» Replies: 7
» Views: 383
EarnestPef
Forum: General Coding Help
Last Post: Lhanelycle
Yesterday, 09:18 PM
» Replies: 0
» Views: 101

 
  [SOLVED] [Windows] Right way to prompt for directory?
Posted by: Winfried - May-10-2022, 06:08 AM - Forum: General Coding Help - Replies (4)

Hello,

On Windows, I need to loop through all .TXT files in a directory.

In a command-line script (no GUI), I can't figure out how to use the us..... More

Print this item

  Use pexpect to send user input
Posted by: alisha17 - May-10-2022, 02:40 AM - Forum: General Coding Help - No Replies

I am trying to send the user input, which is the 'ENTER' key and from the documentation looks like child.sendline() should do the job. However the f..... More

Print this item

  Rain sensor output only on change
Posted by: Pete6 - May-10-2022, 02:28 AM - Forum: General Coding Help - Replies (4)

Greeting all. First post here and a bit of a newbie to coding.

I have built a simple weather station. It samples a rain detector sensor once ever..... More

Print this item

  Secure deploy the code without providing the implementation
Posted by: mikepy - May-09-2022, 06:18 PM - Forum: Code sharing - Replies (1)

Hi fellows, how can I deploy my own library created in Python on Windows or Linux without providing the source code. The reason is that I want to use ..... More

Print this item

  [Hiring] Contract Senior Django Engineer Remote In Us at New Vertical Technologies
Posted by: djangojobs.net - May-09-2022, 04:52 PM - Forum: Jobs - No Replies

To Apply:
djangojobs.net/jobs/1119/contract-senior-django-engineer-remote-in-us-new-vertical-technologies/

About Us:

New Vertical Technologies ..... More

Print this item

  How to solve pancake flip with Python
Posted by: longmen - May-09-2022, 03:23 PM - Forum: Homework - Replies (5)

Hi I wonder if anyone could help me with this issue. So I am doing the pancake flip and I am trying to get the end result as

[python]
1b2w3b4b| g..... More

Print this item

  "SSL: CERTIFICATE_VERIFY_FAILED” error on Python 3.9.6 (Windows 10)
Posted by: rcmv - May-09-2022, 02:29 PM - Forum: General Coding Help - Replies (4)

Hi!
I’m new with Python and I have been following some tutorials and based on one of them I have the following piece of code:

[python]from scrapy ..... More

Print this item

  NLP: exercise with Stanza
Posted by: xinyulon - May-09-2022, 08:44 AM - Forum: General Coding Help - Replies (2)

Here is the question:

Get sentences from Stanza Document objects.


The directory data contains a file na..... More

Print this item

  "Vlookup" in pandas dataframe
Posted by: doug2019 - May-08-2022, 11:42 PM - Forum: General Coding Help - Replies (3)

Hi! How can I find a value in a column and return it from another column, like a vlookup? Below is an example dataframe.

[python]import pandas as ..... More

Print this item

  Error: _vhstack_dispatcher() takes 1 positional argument but 9 were given
Posted by: alexfrol86 - May-08-2022, 10:23 PM - Forum: General Coding Help - Replies (3)

Hi!

I have a system of 10 nonlinear ODE with 10 variables (y[0], y[1], ... y[9]), there are 10 initial conditions for y[i] for x=0 and 4 conditions..... More

Print this item

  Please help NLP: Stanza
Posted by: xinyulon - May-08-2022, 09:50 PM - Forum: Homework - No Replies

Here is the question:

The directory data contains 10 articles from the Estonian Wikipedia, whose filenames follow the pattern et_wik..... More

Print this item

  Upgrading from 2 to 3 and having file write problems
Posted by: KenHorse - May-08-2022, 08:58 PM - Forum: General Coding Help - Replies (2)

[python]#!/usr/bin/python

import serial, time, sys, fileinput

#open and configure serial port
ser = serial.Serial(
port='/dev/ttyUSB0',
bau..... More

Print this item

  Replicate Excel operations with Python
Posted by: Lumberjack - May-08-2022, 04:03 PM - Forum: General Coding Help - Replies (3)

EDIT: Second post features the latest updates

I have this Excel file where I track two products A and B and their weekly differences compared to thei..... More


Attached Files

.xlsx   Delta.xlsx (Size: 10.26 KB / Downloads: 287)
Print this item

  Correct the algorithm of image filter code
Posted by: saoko - May-08-2022, 11:10 AM - Forum: General Coding Help - Replies (6)

Hi everyone. I'm new in python. Now I'm trying to write an image filter, according to the next algorithm:
[img]https://i.stack.imgur.com/xn4U8.jpg[/i..... More

Print this item

  PyQT5 - align left
Posted by: frohr - May-07-2022, 04:54 PM - Forum: General Coding Help - Replies (7)

Hi, I am stuck on very stupid thing.
I need align items left and width must be according text length and for line_edit fixed length.
Thank for any..... More

Print this item

  Help with subtracting values using SQLite & Python
Posted by: Extra - May-07-2022, 03:25 PM - Forum: General Coding Help - Replies (10)

Hello,

I made an inventory system using SQLite and Python. I'm working on a 'checkoutInventory()' function that let's a user add items to a cart a..... More

Print this item

  Python modules for accessing the configuration of relevant paths
Posted by: Imago - May-07-2022, 01:26 PM - Forum: General Coding Help - Replies (1)

Below I have the files **main.py**, **train.py** and **dataLoader.py**. The purpose of path.py is to contain relevant paths inside my project. These p..... More

Print this item

  Emoji Dictionary Help
Posted by: rewainy - May-07-2022, 08:49 AM - Forum: General Coding Help - Replies (5)

Hello,

So I am trying to replace words from the sentence input by the relevant emoji from this dictionary. In the end i would like to reprint the s..... More

Print this item

  df column mean and count of unique
Posted by: SriRajesh - May-07-2022, 08:19 AM - Forum: General Coding Help - No Replies

Ji,
I have below df, and I want to group by coulmn2,column3 and calculate mean of other columns and unique count.

[python]df:
col1 col2 col3 c..... More

Print this item

  recall
Posted by: cool_person - May-07-2022, 06:24 AM - Forum: General Coding Help - Replies (1)

how do you recall a item from a list

Print this item

  an app's scripting system in Python
Posted by: Skaperen - May-07-2022, 04:55 AM - Forum: News and Discussions - No Replies

if i want to create a new app that has its own scripting system with scripts written in Python, what do i need to learn/know? what if i am coding the..... More

Print this item

  Struggling with Juggling JSON Data
Posted by: SamWatt - May-07-2022, 02:25 AM - Forum: General Coding Help - Replies (7)

I have worked through 300+ pages of Shovic & Simpson's Python for Dummies All in One but hit a snag in Book 3, Chapter 2.

The first issue is that t..... More

Print this item

  Help Returning to Different Menus
Posted by: Extra - May-07-2022, 12:43 AM - Forum: General Coding Help - Replies (3)

Hello,

I have a login system that allows StandardUsers to login in and Admins to login.
If an Admin logs in and decides to view the inventory, the a..... More

Print this item

  [Solved]Help with search statement-SQLite & Python
Posted by: Extra - May-06-2022, 07:26 PM - Forum: General Coding Help - Replies (1)

Hello,

I have a function that takes in a user's input->stores it in a python variable called 'userQuery' and I would like to take the variable 'use..... More

Print this item

  How to do a mass replace within a CSV file?
Posted by: cubangt - May-06-2022, 07:15 PM - Forum: General Coding Help - Replies (9)

I have the following code that im using to open a CSV and then create a new filtered csv for importing into excel.

[python]
# THIS OPENS THE NEWLY..... More

Print this item

  TypeError: unsupported opperand type(s) for %: 'int' and 'list'
Posted by: cool_person - May-06-2022, 05:01 PM - Forum: General Coding Help - Replies (7)

nonprimenumbers=[]
primenumbers = []

for i in range (2,100000):
if (i%primenumbers==0):
nonprimenumbers.append
else:
primenumbers.ap..... More

Print this item

  df column aggregate and group by multiple columns
Posted by: SriRajesh - May-06-2022, 02:26 PM - Forum: General Coding Help - No Replies

Hi,
I have below df I want to calculate rank, age pos columns max, min, mean and group by Name, sub,school. I use can only calculate mean, but I want..... More

Print this item

  Convert list to interger
Posted by: Clives - May-06-2022, 01:05 PM - Forum: General Coding Help - Replies (5)

Greetings,
The csv returns: [114436]
I want to get the values as an integer and not list, any pointers appreciated.
Thanks
Clive

[python]
####..... More

Print this item

  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str
Posted by: decoded - May-06-2022, 12:25 PM - Forum: General Coding Help - Replies (1)

I have a folder with .txt files. In that folder I want to list all the files and read each files and replace a specific String. The problem I get is ..... More

Print this item

  kmeans install error (please help me)
Posted by: muratuzun - May-06-2022, 10:53 AM - Forum: General Coding Help - Replies (3)

Merhaba,

python 3.10 versiyonunda kmeans yüklemeye çalıştığımda aşağıdaki hatayı alıyorum bunu nasıl geçerim

creating build\temp.win-amd64-cpyth..... More

Print this item

  naming entities(city abbreviations)
Posted by: tirumalaramakrishna - May-06-2022, 10:33 AM - Forum: General Coding Help - Replies (1)

is there any readymade code for identifying the city name abbreviation??

i have a task which contains P.O Box 1442 Hyderabad .i have to extract cit..... More


Attached Files

.txt   python.txt (Size: 534 bytes / Downloads: 289)
Print this item

  Python / Django Web Developer (F/M/D) at MIR MEDIA - Digital Agency
Posted by: djangojobs.net - May-06-2022, 07:31 AM - Forum: Jobs - No Replies

To apply
djangojobs.net/jobs/1124/python-django-web-developer-fmd-mir-media-digital-agency/


Cologne,Germany

Who we are:

We are an experienced digi..... More

Print this item

  Mid Level Django Python Developer at Bitcoin Solutions, Inc
Posted by: djangojobs.net - May-06-2022, 07:27 AM - Forum: Jobs - Replies (1)

About Us:

Bitcoin Solutions, Inc is a technology company focused on making bitcoin as easy to purchase as any gift card.

BitCards is looking for..... More

Print this item

  Create new dictionary
Posted by: angus1964 - May-06-2022, 07:05 AM - Forum: General Coding Help - Replies (6)

If I have the following two dictionaries.

[python]person1 = {
"name" : "fred"
"age" : 31
}

person2 = {
"name" : "bob"
"age..... More

Print this item

  Create new dictionary
Posted by: angus1964 - May-06-2022, 07:05 AM - Forum: General Coding Help - Replies (2)

If I have the following two dictionaries.

[python]person1 = {
"name" : "fred"
"age" : 31
}

person2 = {
"name" : "bob"
"age..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Dichaelmag 2 minutes ago OLanePulse OLanePulse General Codin...
  Simple webbot for testing 2 hours ago narcpl69 Arush Jobs
  Using moviepy fails due t... 2 hours ago sheepog sheepog General Codin...
  Nested Dictionaries, good... 2 hours ago Curbie snippsat General Codin...
  Script broke with Python ... 2 hours ago aspecteleven Arush Code sharing
  Mathematica code vs Pytho... 2 hours ago MiloChocolatito Arush General Codin...
  Looking for ideas 3 hours ago Azdaghost Arush Bar
  Pillow _getexif for pytho... 9 hours ago Larz60+ StephenTuh General Codin...
  [SOLVED] Open file, and i... Today, 07:56 Winfried Winfried General Codin...
  EarnestPef Yesterday, 21:18 Lhanelycle Lhanelycle General Codin...
  Error without reason Yesterday, 18:18 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 569833
  Tutorial Requ... 474830
  Web Scraping ... 434531
  Newbie with P... 375013
  Thread remain... 346925
Most reputation
buran 581
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12054
buran 8172
snippsat 7329
deanhystad 6831
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
OLanePulse Today
Stephenchers Today
cricketids Today
xham09 Today
porm09 Today

User Panel Messages

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