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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 50 online users.
» 0 Member(s) | 44 Guest(s)
Google, Applebot, Google Image, AOL

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

 
  can you please help me with this python code
Posted by: MetsxxFan01 - Apr-26-2022, 06:18 AM - Forum: Web Scraping & Web Development - Replies (2)

[python]import urllib.request
from bs4 import BeautifulSoup

url = "http://py4e-data.dr-chuck.net/known_by_Fikret.html"
html = urllib.request.urlopen(..... More

Print this item

  get out of while loop and stop repeat
Posted by: Frankduc - Apr-25-2022, 11:59 PM - Forum: General Coding Help - Replies (11)

hello,

I am trying to get my function out of the loop and avoid sending multiples emails.


[python]def courriel():
print("intruder!")
..... More

Print this item

  Extract parts of multiple log-files and put it in a dataframe
Posted by: hasiro - Apr-25-2022, 07:07 PM - Forum: General Coding Help - Replies (4)

Hi everyone

As I posted a few weeks ago (https://python-forum.io/thread-36845-[url=https://python-forum.io/thread-37036.html]..... More

Print this item

  problem handling redirection
Posted by: dhdurgee - Apr-25-2022, 05:49 PM - Forum: Networking - Replies (2)

I am attempting to update a python script from 2018 to handle some new cases and have encountered a problem I have been unable to solve.

This scrip..... More

Print this item

  TimeOut a function in a class ?
Posted by: Armandito - Apr-25-2022, 01:06 PM - Forum: General Coding Help - Replies (1)

Hey everyone !

Here is my problem : I have defined a class, where I have defined some functions. In the __init__ of my class I can call some..... More

Print this item

  Need help with my code
Posted by: NeedHelpPython - Apr-25-2022, 12:49 AM - Forum: Homework - Replies (1)

For my summary function, what I want it to complete is to get the student with the most courses completed and the highest average. I am having trouble..... More

Print this item

  Closing logger from other function problem
Posted by: Paqqno - Apr-24-2022, 09:19 PM - Forum: General Coding Help - Replies (1)

I have problem with loggers. One function of my program is initiazing logger in specified directory. Second function is closing this logger in order t..... More

Print this item

  How to insert data in a dataframe?
Posted by: man0s - Apr-24-2022, 06:12 PM - Forum: Data Science - Replies (1)

I want to insert lots of csvs in one dataframe. They are from zenodo and are charts from spotify. The .zip archive has three folders, 2017, 2018, 2019..... More

Print this item

  How to plot 2 graphs in one figure?
Posted by: man0s - Apr-24-2022, 06:06 PM - Forum: Data Science - Replies (1)

The below code returns 2 seperate graphs, how can I combine them in one figure?
[python]
sns.set()
sns.set_context("notebook")
sns.set_style("dark..... More

Print this item

  Resources for printing tabledata-Linux and Windows
Posted by: hammer - Apr-24-2022, 01:17 PM - Forum: General Coding Help - Replies (4)

I apologize for asking a "how to" question but I am a "blank slate" when it comes to printing and what little info I turn up on the subject is complex..... More

Print this item

  magic related field in Django model
Posted by: sonh - Apr-24-2022, 07:46 AM - Forum: General Coding Help - Replies (1)

Hello

I have a Django model class as:

[python]
from django.db import models

class DeliveryUpdate(models.Model):
delivery_id = models.Ch..... More

Print this item

  Insert a multiple constant value after header in csv file using python
Posted by: shantanu97 - Apr-24-2022, 06:41 AM - Forum: General Coding Help - Replies (1)

Is it possible to insert 9 new lines of Constant Value("AA") in a CSV starting from the 2nd row? I need to insert the "AA" at the top 9 rows(after the..... More

Print this item

  Want to shorten the python code
Posted by: shantanu97 - Apr-24-2022, 06:19 AM - Forum: General Coding Help - Replies (3)

My code works fine. However, I would like to shorten my code if there is a shorter way to write this. Does anyone have a solution? I have a lot of rep..... More


Attached Files

.py   Check.py (Size: 116.62 KB / Downloads: 273)
Print this item

  Sequence to sequence AI advice
Posted by: tomharvey - Apr-24-2022, 05:06 AM - Forum: Data Science - No Replies

Hello,

I am looking for a field of AI to explore that will be able to help me generate a sequence of numbers from existing sequences of numbers. F..... More

Print this item

  Creating a TG crypto Bot_ problem when trying to with bot.polling
Posted by: p1ner0 - Apr-24-2022, 04:27 AM - Forum: General Coding Help - Replies (1)

Hi there, I have a problem, I have made a telegram bot, which gets input from telgegram(namely the crypto coin name) and then using the CoinGecko API,..... More

Print this item

  Simple python programs for beginners
Posted by: Talbot9 - Apr-23-2022, 06:33 PM - Forum: Tutorial Requests and Submissions - Replies (1)

Hello

Firstly apologies but I'm a relatively newbie to python and I hsve mastered making a basic digital clock with python and that's about as far ..... More

Print this item

  Error when running a matplot lib example
Posted by: aurelius_nero - Apr-23-2022, 04:41 PM - Forum: General Coding Help - Replies (3)

Hi all,
New forum user here.
When I run this code from the Matplotlib examples, I get the following error:
[error]Traceback (most recent call last..... More

Print this item

  I need help!!!!
Posted by: Nimesh_SDP - Apr-23-2022, 04:00 PM - Forum: Homework - Replies (3)

I need to write a program to acquire, extract and compare the price from these two suppliers, for a given product.

There are two online supermarket..... More

Print this item

  How to quantize a 4 dimensional array?
Posted by: PythonNPC - Apr-23-2022, 03:33 PM - Forum: General Coding Help - Replies (2)

Hello,

I am new to NumPy.

Lets say I have an array:

nparray = np.array(output2)
print(output2.shape)
Output:
[code](1, ..... More

Print this item

  Folium: Conflict with Font Awesome Kit
Posted by: jgomes_eu - Apr-23-2022, 03:18 PM - Forum: General Coding Help - No Replies

Hi everyone,
I've run into a problem with a folium map inside a Dash app.
Here's my code
[python]
import pandas as pd
import branca
import f..... More

Print this item

  semantics of comma inside array brackets
Posted by: usercat123 - Apr-23-2022, 08:09 AM - Forum: Data Science - Replies (2)

hi,

I am trying to understand a piece of code, namely
[python]
import matplotlib.pyplot as plt
import numpy as np
expdat = np.genfromtxt(fname..... More

Print this item

  Compare fields from two csv files
Posted by: georgebijum - Apr-23-2022, 04:16 AM - Forum: General Coding Help - Replies (3)

I am quite new to the Python Programming and would appreciate your help on the below.

Use case - I have Customer files from two sources .Each of th..... More

Print this item

  Código simples
Posted by: Lumen253 - Apr-23-2022, 12:46 AM - Forum: General Coding Help - Replies (1)

Iniciei Python hoje e estou com uma dúvida.

Tenho dois códigos, tentei fazer da forma mais atual um código que estava funcionando e ele deu erro:
..... More

Print this item

  what would break if ...
Posted by: Skaperen - Apr-22-2022, 10:36 PM - Forum: News and Discussions - Replies (4)

what would break if the code syntax was extended so that {{ and }} bounds a frozenset like {..... More

Print this item

  Time series
Posted by: JasminQuinn - Apr-22-2022, 10:33 PM - Forum: General Coding Help - No Replies

Hello, I'm a beginnr and I need help in the Map steps to dates
please help it's urgent!!        


[python]train = pd.r..... More

Print this item

  Multiprocessing queue catch get timeout
Posted by: Pythocodras - Apr-22-2022, 05:43 PM - Forum: General Coding Help - Replies (1)

Hello,
I have a simple script that waits for a queue with a timeout. I would like to catch that specific exception but cant find the correct one.
[..... More

Print this item

  Numpy reshape
Posted by: mr_byte31 - Apr-22-2022, 02:10 PM - Forum: General Coding Help - Replies (1)

I tried to reshape a 3-D matrix using two different ways.
If the end result is 1-D the two methods match
If the end result is 2-D the two method fai..... More

Print this item

  Adding Decimals to classes with OOP + rounding to significant digits (ATM demo)
Posted by: Drone4four - Apr-22-2022, 01:42 PM - Forum: General Coding Help - Replies (7)

I’m learning OOP by trying to build a rudimentary banking ATM machine. It started out an an exercise for Fred Baptiste’s Udemy online courseware but I..... More

Print this item

  Intel 8051 microcontroller emulator
Posted by: estarq - Apr-22-2022, 10:59 AM - Forum: Code sharing - No Replies

I made this app as a BE thesis. It's using Brython to make Python work in Chromium (Electron) and React with Material-UI for the front-end. It's suppo..... More

Print this item

  Optimal way to search partial correspondence in a large dict
Posted by: genny92c - Apr-22-2022, 10:20 AM - Forum: General Coding Help - No Replies

I have got a set of songs, and everyone of these has got a list of tags associated. I am working with senticnet 1.6, which is basically a large dict, ..... More

Print this item

  TypeError: list indices must be integers or slices, not range
Posted by: Anldra12 - Apr-22-2022, 10:15 AM - Forum: General Coding Help - Replies (2)

Get the TypeError: list indices must be integers or slices, not range

[python]def getDistinctX(x_subi, F):
x_subi = []
ind = rando..... More

Print this item

  multiprocessing advices
Posted by: paul18fr - Apr-22-2022, 09:50 AM - Forum: Data Science - Replies (5)

Hi all

For my projecy my current code does the job as expected so far, using massively Numpy and the vectorization whenever possible, using about 2..... More

Print this item

  Problem with datetime [SOLVED]
Posted by: AlphaInc - Apr-22-2022, 09:17 AM - Forum: General Coding Help - Replies (3)

hello everbody,

I'm writing a python3 script which should check daily for the day of easter and if the difference is 5 days it should trigger anoth..... More

Print this item

  json api data parsing
Posted by: elvis - Apr-21-2022, 11:59 PM - Forum: General Coding Help - No Replies

Having issue with this piece of code, its an api that has json text but its not readable.
in _get_mean_subclass
for prod, v in response_API.item(..... More

Print this item

  how I can use the widgets as an argument of a function?
Posted by: pymn - Apr-21-2022, 08:25 PM - Forum: GUI - Replies (9)

In this example, I have an entry and two LabelFrames. I am looking to find out how I can call my LabelFrame through only one function. I have ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... Today, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 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... 578711
  Tutorial Requ... 509260
  Web Scraping ... 441853
  Newbie with P... 385807
  New Users Int... 375163
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
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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