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,935
» Latest member: Baran12332
» Forum threads: 38,722
» Forum posts: 175,510

Full Statistics

Online Users
There are currently 59 online users.
» 0 Member(s) | 51 Guest(s)
Applebot, Bing, AOL, AOL, Google, Mojeek, Internet Archive

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
9 hours ago
» Replies: 2
» Views: 275
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
10 hours ago
» Replies: 10
» Views: 3,726
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,350
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 661
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,111
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,001
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,237
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,238
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,351
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 916

 
  Exporting data frame to excel
Posted by: dyerlee91 - Oct-04-2021, 06:35 PM - Forum: Data Science - No Replies

Hey everyone. I've got several lists I want to export to excel, but the only thing my script yields is an empty file with no file type. Can anyone poi..... More

Print this item

  How to increase the size of a png picture for the heatmap of the correlation?
Posted by: lulu43366 - Oct-04-2021, 06:11 PM - Forum: General Coding Help - Replies (9)

Good evening to the community Smile
I am working with the file "Santé3".
I would like to create and download a png picture with a good definit..... More


Attached Files

Thumbnail(s)
   

.csv   Santé3.csv (Size: 5 KB / Downloads: 367)
Print this item

  Redirect uri mismatch github in django
Posted by: SubratP - Oct-04-2021, 05:04 PM - Forum: Web Scraping & Web Development - No Replies

Hello,

I am working in django framework and having an issue with login to github from application using oauth.
When i login into the github accou..... More

Print this item

  A question about 'Event loop is closed'
Posted by: fc5igm - Oct-04-2021, 02:24 PM - Forum: General Coding Help - Replies (3)

I will appreciate it if anyone could give me some help!
My code:
[python]
import asyncio
import aiohttp
from lxml import etree
import requests
..... More

Print this item

  is it pythonic to add a name 'attribute' to an existing variable?
Posted by: amjass12 - Oct-04-2021, 08:26 AM - Forum: General Coding Help - Replies (6)

I have several variables in a list: - they are the result of ana analysis run using another library in python

[python]vars = [run1, run2, run3, run..... More

Print this item

  Showing and saving the output of a python file run through bash
Posted by: Rim - Oct-04-2021, 07:55 AM - Forum: General Coding Help - Replies (3)

Hi all,

I'm new to the world of Python, linux and programming in general so my question may be very basic but I can't find an answer anywhere.

I..... More


Attached Files

.py   mycode.py (Size: 5.69 KB / Downloads: 401)
Print this item

  Why doesn't drop_duplicates() modify my Dataframe?
Posted by: shantanu97 - Oct-04-2021, 04:14 AM - Forum: General Coding Help - Replies (1)

I have two files with exactly same data in it. My python reads that input file and fetch out all the necessary information and then save it in a CSV f..... More


Attached Files

Thumbnail(s)
   

.csv   RDPlod.csv (Size: 1.56 KB / Downloads: 398)
.py   rdplod.py (Size: 3.06 KB / Downloads: 385)
Print this item

  Why built in functions are defined as class?
Posted by: quazirfan - Oct-04-2021, 03:46 AM - Forum: General Coding Help - Replies (5)

In python official documentation there is a list of built in functions. But if I click on ..... More

Print this item

Big Grin question about simple algorithm to my problem
Posted by: jamie_01 - Oct-04-2021, 01:15 AM - Forum: General Coding Help - Replies (1)

question about this line

[code]
#!/usr/bin/python3

names = [] # list
outF = open("myOutFile.txt", "w")

total = 0
p = '\n'
char_count = "C..... More

Print this item

  How can I assign "multiple variables" to a single "value"?
Posted by: Psycpus - Oct-04-2021, 12:16 AM - Forum: General Coding Help - Replies (2)

I'm sorry if the title confused you. This is the first time I'm posting here, forgive me if I have mistakes.

Here's what I'm trying to do:
I'm trying..... More

Print this item

  Need help with my Python code (Multiplication)
Posted by: NeedHelpPython - Oct-03-2021, 07:55 PM - Forum: General Coding Help - Replies (2)

[python]print("\n----Task 4---- Multiple numbers")

numbers = input("Input numbers to multiply: ")
num_1 = int()
num_2 = int()
print("Extracted n..... More

Print this item

  Class-Aggregation and creating a list/dictionary
Posted by: IoannisDem - Oct-03-2021, 05:08 PM - Forum: General Coding Help - Replies (1)

Hello

I am creating three classes and I try to use aggregation/association between them for inheritance.
The first class has the info of the stude..... More

Print this item

  a function common to methods of a class
Posted by: Skaperen - Oct-03-2021, 04:56 PM - Forum: General Coding Help - Replies (7)

when coding a class with multiple methods, how to code a function to be common to all these methods?

Print this item

  List comprehension used differently
Posted by: coder_sw99 - Oct-03-2021, 03:39 PM - Forum: General Coding Help - Replies (3)

Hello,

I saw on GitHub this line of code:

word_list = [letter if letter in used_letters else '-' for letter in word]
But I ..... More

Print this item

  Simple code question about lambda and tuples
Posted by: JasPyt - Oct-03-2021, 01:51 PM - Forum: General Coding Help - Replies (7)

I have a simple code:

my_tuple = (0,1,2,3,4,5,6)
foo = list(filter(lambda x: x-0, my_tuple))

print(foo)
I know what the out..... More

Print this item

  Last caracter of a string truncated issue when working from the end of the string
Posted by: Teknohead23 - Oct-03-2021, 12:15 PM - Forum: General Coding Help - Replies (3)

Hello, can someone please explain why when I select a range starting from the end of a string it truncates the last character?
I can work from the fr..... More

Print this item

Exclamation Python Homework (Urgent help needed!!)
Posted by: chickenseizuresalad - Oct-03-2021, 09:54 AM - Forum: Homework - Replies (6)

Hi, I am quite new to python as I just started doing the GCSE so please don't leave any rude comments- I have probably made many mistakes.
One of my ..... More

Print this item

  ModuleNotFoundError: No module named 'Seal'
Posted by: Anldra12 - Oct-03-2021, 04:24 AM - Forum: General Coding Help - Replies (10)

I run project for Homographic Encryption Where Microsoft Seal library is needed as i run it from git and install successfully. But i am using Python3...... More

Print this item

  code running after tracebacks
Posted by: Skaperen - Oct-03-2021, 12:09 AM - Forum: News and Discussions - No Replies

i had mentioned elsewhere that i had seen code run after tracebacks. i found why. this was happening. when developing classes where instantiated a ..... More

Print this item

  functions/methods
Posted by: menator01 - Oct-02-2021, 07:22 PM - Forum: General Coding Help - Replies (2)

In some of the code I have seen def somefunc() -> list: or varient. What does that do?

Print this item

  Real-Time output of server script on a client script.
Posted by: throwaway34 - Oct-02-2021, 05:56 PM - Forum: General Coding Help - Replies (2)

So i want to get a real-time readout of commands executed on the server side of the two scripts, How would I do that without only limited output?
Ser..... More

Print this item

  Minecraft Python install error
Posted by: SomeAcandKid - Oct-02-2021, 04:29 PM - Forum: General Coding Help - Replies (1)

I get this error:
https://drive.google.com/file/d/1_8yJrvm...sp=sharing
Python 3.9.7

Print this item

  How to use GPU in Python or Pycharm?
Posted by: plumberpy - Oct-02-2021, 03:09 PM - Forum: General Coding Help - Replies (2)

I want to use the GPU to speed up running a program.

How can I enable GPU CUDA in Python or Pycharm?

Thanks.

Print this item

  Saving data into xlxs colomwise
Posted by: erdemath - Oct-02-2021, 09:01 AM - Forum: Data Science - No Replies

I generate different data-sets, and I want to save them into excel file in the form of columns. But, excel file always returns the data-sets row-wise...... More

Print this item

  Need to install an old version of matplotlib
Posted by: Pedroski55 - Oct-01-2021, 11:29 PM - Forum: General Coding Help - Replies (3)

A friend gave me something called a kittenbot.

Apparently, this thing can be programmed using Py..... More

Print this item

  how to get a traceback and keep on running?
Posted by: Skaperen - Oct-01-2021, 09:45 PM - Forum: General Coding Help - Replies (1)

how to get a traceback and keep on running? i'd like to know because it can sometimes be useful. plus, it happened on its own with code i was workin..... More

Print this item

  How to do next line output from CSV column?
Posted by: atomxkai - Oct-01-2021, 07:09 PM - Forum: General Coding Help - Replies (2)

Hello, I have 4 columns in CSV and I want to make the output for COL4 as next line.
CSV Columns
COL1 COL2 COL3 COL4

output:
<line1> Col2
<line2> Col3..... More

Print this item

  Tutorials on sockets, threading and multi-threading?
Posted by: muzikman - Oct-01-2021, 06:47 PM - Forum: General Coding Help - Replies (2)

Greetings,

Does anyone know of any books or online tutorials that talks in depth about the networking aspects of Python: sockets, threading, multi-..... More

Print this item

  popping an iterator
Posted by: Skaperen - Oct-01-2021, 06:14 PM - Forum: General Coding Help - Replies (11)

i can easily extract the last item from a list with mylist.pop(). is there an easy way to do that with an iterator?

Print this item

Lightbulb trace library
Posted by: xxxlabradorxxx - Oct-01-2021, 06:12 PM - Forum: General Coding Help - Replies (1)

Hi, I'm hoping someone could explain how the trace library in Python works. In this class, I am taking a significant portion of it, is tracing ..... More

Print this item

  Where's the endless loop?
Posted by: Mark17 - Oct-01-2021, 02:08 PM - Forum: General Coding Help - Replies (14)

Hi all,

Here's some code:

[Python]
#goal here is to sum number of rows by DTE

df = pd.read_csv("C:/Users/Mark/Desktop/SPX_2021_copy.csv")
..... More

Print this item

  Random data generation sum to 1 by rounding
Posted by: juniorcoder - Oct-01-2021, 01:44 PM - Forum: General Coding Help - Replies (9)

Hello everyone,
I need a small help. I need to generate random values between 0 and 1. They must be successively ordered. Let me give you an exampl..... More

Print this item

  how can I correct the Bad Request error on my curl request
Posted by: tomtom - Oct-01-2021, 08:04 AM - Forum: General Coding Help - Replies (8)

I have this request example :

curl –X POST https://api.apifonica.com/v2/accounts/{a...}/messages \
-H 'Content-Type: application/json' \
-d..... More

Print this item

  Using regex to count specific character in file
Posted by: shamishd - Oct-01-2021, 06:30 AM - Forum: Homework - Replies (1)

Using regex to count specific character in file

i have a hard time getting the right output using regex to count "$" on the file

#content in sam..... More

Print this item

  Have tkinter button toggle on and off a continuously running function
Posted by: AnotherSam - Oct-01-2021, 02:55 AM - Forum: GUI - Replies (5)

Hello all,

I am trying to write a function for a tkinter button that when toggled begins running a continuously looping function until the same but..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 9 hours ago arbiel arbiel General Codin...
  403 Error 10 hours ago CaptainNewb CaptainNewb Web Scraping ...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576255
  Tutorial Requ... 497932
  Web Scraping ... 440187
  Newbie with P... 384029
  New Users Int... 366762
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+ 12089
buran 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
Baran12332 Yesterday
Hershien Yesterday
Diyaseating Yesterday
marineoman Yesterday
marineservice Yesterday

User Panel Messages

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