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,986
» Latest member: Tycho_2025
» Forum threads: 38,735
» Forum posts: 175,577

Full Statistics

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

Latest Threads
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
31 minutes ago
» Replies: 1
» Views: 35
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
5 hours ago
» Replies: 3
» Views: 2,519
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 2
» Views: 68
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 6
» Views: 180
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,040
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 456
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,085
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,155
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 837
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,109

 
  imaplib problem
Posted by: levann - Jul-12-2019, 01:08 PM - Forum: General Coding Help - Replies (3)

Hi there

I am trying to remake python email bot, which will satisfy my needs.
I have used code from ..... More

Print this item

  SQL connection in seperate file?
Posted by: Tommy - Jul-12-2019, 12:22 PM - Forum: General Coding Help - Replies (1)

Hey

I got a few python scripts in the same folder. They all use a SQL connection.

But I have the configured in each of the script files.

Can ..... More

Print this item

  HX711&matplotlib problems
Posted by: olego - Jul-12-2019, 12:22 PM - Forum: General Coding Help - No Replies

Hi!
I'm making a project in python on rpi 3b+ for a machine I've build in my laboratory and have some problems with the code. :cry:
The aim is to c..... More

Print this item

  [supernoob] Can't spot the error...
Posted by: sidon - Jul-12-2019, 11:57 AM - Forum: Homework - Replies (2)

Noob taking the first steps with Python here, I tried the following:

[python]

# guessing game

secret = 'supernoob'
guess = ''
attempts = 0..... More

Print this item

  Data is in and not in the file at the same time
Posted by: Arvydas_Kromelis - Jul-12-2019, 11:17 AM - Forum: General Coding Help - Replies (1)

Hello everyone!

At the moment I'm working on a simple Regiter/Login project which uses text file to store all the data.

[python]username=input("..... More

Print this item

  Trouble importing modules on a new python version
Posted by: snackman_barry - Jul-12-2019, 11:04 AM - Forum: General Coding Help - Replies (2)

I'm using a Raspberry Pi, and NOOBS came pre-loaded with python3.5. Unfortuantely, a package that I need only works properly with 3.7, so I installed ..... More

Print this item

  Spacing pie chart colours evenly in matplotlib?
Posted by: Giovanni_diJacopo - Jul-12-2019, 10:27 AM - Forum: Data Science - Replies (1)

How can I make each slice of the pie chart have a different colour?

[Image: iCheY7e.png]

this is the code:

[python]
im..... More

Print this item

  list of odd numbers
Posted by: cffiver2 - Jul-12-2019, 08:52 AM - Forum: Homework - Replies (2)

I need to write a function that generates a list of n odd numbers, starting at 1. For example, if the input is 12, the output would be
[1, 3, 5, 7, ..... More

Print this item

  How can I this?
Posted by: herace - Jul-12-2019, 03:43 AM - Forum: General Coding Help - Replies (4)

Hello,
I want to make a Mirrorace uploader, how can I make this?

Print this item

  Called Functions Not Working
Posted by: WhatAmIDoing09 - Jul-12-2019, 12:51 AM - Forum: General Coding Help - Replies (3)

So I am trying to do Five Nights at Freddy's in real life and I need a calculator to see how much power we have left. But I keep running into a proble..... More

Print this item

  n00b question
Posted by: millpond - Jul-12-2019, 12:18 AM - Forum: General Coding Help - Replies (6)

I am in the process of learning Python3.x, with prior experience in Perl.

I am wondering if there is anything out there that teaches Python from a..... More

Print this item

  Split the list and obtain a single value
Posted by: Gururaj - Jul-11-2019, 10:48 PM - Forum: General Coding Help - Replies (1)

Hi everyone,

I am gururaj deshpande (new user), i started using python recently for my college project purpose. My query is regarding SQL query par..... More

Print this item

  More recent package/library for difflib?
Posted by: twinpiques - Jul-11-2019, 09:36 PM - Forum: Data Science - Replies (2)

Hello. I was going to install the difflib package, so I went to get more information about it from PyPi.org. However, it no longer exists, apparentl..... More

Print this item

  inserting data to mysql with python
Posted by: justin_py - Jul-11-2019, 09:31 PM - Forum: General Coding Help - Replies (1)

Hello,

Would anyone be able to help me out with the python code. I have been trying to write a code to read a value from .csv file and insert it in..... More

Print this item

  More Python Embedding Trouble
Posted by: jibarra - Jul-11-2019, 07:15 PM - Forum: General Coding Help - Replies (3)

Shy
I'm trying to run a basic C/Python API, I am using Python3.6
https://docs.python.org/3.6/extending/em...h-level-em..... More

Print this item

  Invalid archive error when attempting to install dash bootstrap components
Posted by: meaydemi - Jul-11-2019, 05:49 PM - Forum: General Coding Help - No Replies

Hello,

When I attempt to use Anaconda prompt to install dash bootstrap components, I am eventually met with this error:

InvalidArchiveError("Er..... More

Print this item

  Anyone know what happened to pypi-org stats page?
Posted by: Crontab - Jul-11-2019, 05:25 PM - Forum: Bar - Replies (4)

Hi all,

The pypi-org stats page used to work as recently as April 2019, but stopped sometime in May. The page no..... More

Print this item

  Grouping Candidates with same name
Posted by: coolperson - Jul-11-2019, 05:11 PM - Forum: Homework - Replies (4)

I am looking for a python program solution to this challenge:

Given a list of candidate demographics for numerous candidates, we want to be ..... More

Print this item

  Pyinstaller exe file permissions
Posted by: Rainbow_Crash - Jul-11-2019, 03:26 PM - Forum: General Coding Help - Replies (1)

Hello,

First post so I hope it is ok.

I have written a Python program that connects to a REST API, reads a bunch of data and then saves it to a ..... More

Print this item

  "I'm Feeling Lucky" script problem (again)
Posted by: tab_lo_lo - Jul-11-2019, 03:21 PM - Forum: Web Scraping & Web Development - Replies (7)

I didn't get any replies to the other related thread; and, because one other person in that thread had the same problem as me with no answers I though..... More

Print this item

  How to replace matching rows
Posted by: SriMekala - Jul-11-2019, 02:35 PM - Forum: General Coding Help - Replies (2)

Hi,
I have below DataFrame, I want to replace if row value contains 'pass' with '0'.

[python]import pandas as pd

df=pd.DataFrame({'Name':['NHAY..... More

Print this item

  Optimizing a code
Posted by: Amniote - Jul-11-2019, 02:11 PM - Forum: General Coding Help - Replies (4)

Hello everyone,

I create an algorithm that will give me the path of the shortest interactions between 2 proteins, I explain:

I have a first file..... More

Print this item

  Use of %%SAS
Posted by: pmelod - Jul-11-2019, 01:43 PM - Forum: General Coding Help - Replies (1)

I would to use %%SAS to execute SAS code in Python but I receive only this message: "this shouldn't happen".
I don't understand what I wrong.
The co..... More

Print this item

  install Pyserial
Posted by: neeheng - Jul-11-2019, 01:27 PM - Forum: General Coding Help - Replies (2)

I using Python 3.x , and trying using difference code to download / install pyserial. but still fail to install it.

[python]
pip install pyserial..... More

Print this item

  Change linenumber and filename printed in exceptions like #line in C
Posted by: kryptomatrix - Jul-11-2019, 01:10 PM - Forum: General Coding Help - Replies (2)

Hi,
As you might know, there is the #line command in the C-preprocessor:

[python]#include <stdio.h>
#line 20 "abc"
int main() {
printf("%i ..... More

Print this item

  Changing elements of a list to match another list
Posted by: rockproper - Jul-11-2019, 12:56 PM - Forum: General Coding Help - Replies (2)

I am trying to iterate through a list of list and increase the first element in each sublist until it matches an integer on another list...

[python]l..... More

Print this item

  Groupby in pandas with conditional - add and subtract
Posted by: rregorr - Jul-11-2019, 12:56 PM - Forum: Data Science - Replies (2)

I have a dataframe with 4 columns "Identificação Única", "Nome", "Rubrica" and "Valor" and I would like to groupby the column "Identificação Única" e ..... More

Print this item

  python -m venv VS virtualenv
Posted by: kazi380 - Jul-11-2019, 12:00 PM - Forum: General Coding Help - Replies (4)

Hi all,

Can someone explain to me why Apache24 server is able to host my Python-Flask (test) web application, when the Python virtual environment i..... More

Print this item

  Is there a more effecient way to do this ? File Names
Posted by: sumncguy - Jul-11-2019, 11:35 AM - Forum: General Coding Help - Replies (2)

I often need to loop through a list of logs and parse them.
I like to use, for instance, an ip and hostname as designations for files creation. Its..... More

Print this item

  installation directory of modules in python3.7
Posted by: srm - Jul-11-2019, 11:14 AM - Forum: General Coding Help - Replies (2)

when we install numpy or any other packages with pip command on windows,
where exactly the numpy files are getting stored in path...
how do we loca..... More

Print this item

  Closure function
Posted by: Uchikago - Jul-11-2019, 09:06 AM - Forum: General Coding Help - Replies (3)

Closure function doesn't make sense:
[python]def make_multiplier_of(n):
def multiplier(x):
return x * n
return multiplier
times3 = ma..... More

Print this item

  Type error: dump() missing 1 required positional argument: fp
Posted by: jaycuff13 - Jul-11-2019, 08:36 AM - Forum: General Coding Help - Replies (2)

Hi, I am trying to create a json file that stores my users email for subscription purposes. I get an error that says, 'Type error: dump() missing 1 re..... More

Print this item

  Get trunk port
Posted by: Remiix93 - Jul-11-2019, 07:29 AM - Forum: Networking - Replies (1)

Hi, I am creating a code to creat vlan and find the trunk port on a Avaya switch.
So i am wondering how do i get only the trunk ports and adds to get..... More

Print this item

  Cyclic reference
Posted by: Uchikago - Jul-11-2019, 07:17 AM - Forum: General Coding Help - Replies (2)

Hi, today i came across this code:

#test1.py 
x=1
def change(): 
    import test1 
    test1.x=2 
change() 
print(x)
output..... More

Print this item

  Learning indexing with python, pick dates
Posted by: dervast - Jul-11-2019, 06:23 AM - Forum: Data Science - Replies (1)

Hi all,
I have two data frames both contain time indexes with the same time period.
I want to pick start and end periods from the first data frame..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  print does not open conso... 31 minutes ago Tycho_2025 Axel_Erfurt General Codin...
  Fred Economic Data API 5 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... 6 hours ago bimosora noisefloor General Codin...
  Parse Markdown / get the ... 6 hours ago SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
Most views
  The best Prog... 577464
  Tutorial Requ... 501229
  Web Scraping ... 441088
  Newbie with P... 385158
  New Users Int... 369826
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Tycho_2025 Today
chikkamagalur Today
Costa Today
bimosora Today
kyleconor797 Yesterday

User Panel Messages

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