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,945
» Latest member: susan
» Forum threads: 38,725
» Forum posts: 175,521

Full Statistics

Online Users
There are currently 74 online users.
» 1 Member(s) | 68 Guest(s)
Google, Bing, AOL, AOL, Mojeek, deanhystad

Latest Threads
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
2 hours ago
» Replies: 0
» Views: 23
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: susan
4 hours ago
» Replies: 4
» Views: 9,087
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
7 hours ago
» Replies: 2
» Views: 419
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
8 hours ago
» Replies: 0
» Views: 66
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:56 PM
» Replies: 9
» Views: 561
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,784
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,104
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,462
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,024
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,774

 
  TypeError: sum() missing 1 required positional argument: 'num2'
Posted by: Insen - Jan-06-2021, 02:25 PM - Forum: General Coding Help - Replies (3)

def super_func(**kwargs):
    print(sum(kwargs))

super_func(num1 =1, num2=2)
[error]TypeError ..... More

Print this item

  Suggestions: Datastructure Design
Posted by: wisdomofnimn - Jan-06-2021, 02:23 PM - Forum: News and Discussions - Replies (2)

I've been using python for 3-4 years (pseudo-)professionally, but one topic that I struggle with routinely is what I'd call Data Structures but I feel..... More

Print this item

  Images are storing in RAM and don't get garbage collected
Posted by: MaxRicik - Jan-06-2021, 02:15 PM - Forum: General Coding Help - Replies (4)

I have a random image picker, and images created by PIL are not garbage collected, even if I delete self.rand_img.image. I can collect it by destroyin..... More

Print this item

  Add a row to a dataframe or append whole dataframe.
Posted by: tsurubaso - Jan-06-2021, 02:12 PM - Forum: General Coding Help - Replies (1)

Hello to all,
Happy new year and good health!!


I am sure this is super simple, but I can't find the right way to do it.
I have a folder with some cs..... More

Print this item

  'urllib3' Module not found when import 'requests'
Posted by: spanz - Jan-06-2021, 01:58 PM - Forum: General Coding Help - Replies (5)

Hello guys :)
I'm using python 3.9 on linux(ParrotOS).
While practicing python, I installed and imported 'requests' module.
When I'm trying to use ..... More

Print this item

  Recommendations for ML libraries for time-series forecast
Posted by: AndreasPython - Jan-06-2021, 01:03 PM - Forum: Data Science - No Replies

Hi fellow data scientists,

I am new to ML and python and after some research I am looking for some hints or guidance:

I have 3 kinds of problems..... More

Print this item

  Random Passcode Generator function
Posted by: romeo777 - Jan-06-2021, 10:58 AM - Forum: Code sharing - Replies (2)

Hi, I just started learning to program a couple months ago, and I wrote this function to generate a Password to a desired length. Please tell me what ..... More

Print this item

  Remote File Transfer- Error
Posted by: wonderboy - Jan-06-2021, 10:46 AM - Forum: General Coding Help - Replies (1)

I want to upload a file from my server (linux machine) to my client machine(Windows 10), however when i try to do that I'm only able to transfer a bla..... More

Print this item

  Help with passwords program
Posted by: Vasilis - Jan-06-2021, 10:06 AM - Forum: General Coding Help - Replies (1)

Hello there!

I want to create a program that stores the password hashes. I must use one of the PH functions and store all the necessary information..... More

Print this item

  how to make a hotkey for text adventure game
Posted by: myn2018 - Jan-05-2021, 11:04 PM - Forum: General Coding Help - Replies (2)

So I'm trying to make this sort of "map" key for the player to press to change their location. But I don't want to manually put in the code for every ..... More

Print this item

  Help setting up dataframes
Posted by: yk303 - Jan-05-2021, 10:31 PM - Forum: Data Science - No Replies

Hello everyone,


I have setup dataframes before but I always struggle at the early stages. There is some key piece of information that I am missing a..... More

Print this item

  Deepnote as alternative to Jupyter
Posted by: buran - Jan-05-2021, 08:54 PM - Forum: News and Discussions - Replies (4)

From a blog post in the latest PyCodersWeekly newsletter I've seen [url=h..... More

Print this item

  Game Graphics Viewer And Editor Query
Posted by: eddywinch82 - Jan-05-2021, 08:53 PM - Forum: GUI - Replies (2)

Hi there,

I would like to attempt to make a Utility that allows me, to view and edit Graphics from a certain WW2 Aircraft Combat DOS Game.

As I ..... More

Print this item

  Good enough?
Posted by: blacksword - Jan-05-2021, 08:02 PM - Forum: Code Review - Replies (1)

Hi, im new to this whole programming thing. So for my first uni project we had to make a rock paper scissors game. Would this be acceptable though? Or..... More

Print this item

  Sorting Elements via parameters pointing to those elements.
Posted by: rpalmer - Jan-05-2021, 06:50 PM - Forum: General Coding Help - Replies (3)

I am looking for an algorithm or sorting code that does not use function calls such as numpy or scipy. I am working with IronPython in Revit to sort c..... More

Print this item

  help with url links- href links don't work properly
Posted by: DeBug_0neZer0 - Jan-05-2021, 06:46 PM - Forum: General Coding Help - Replies (1)

I am having trouble with the links in my code. I had everything running fine, but when I click on the url links (to go to home/about/plot) I get an er..... More

Print this item

  Formatting date in a dataframe
Posted by: WiPi - Jan-05-2021, 05:56 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I have a pandas generated dataframe (df) where the first column has a series of dates as below:

[output]
0 11.26.2020 03:36
1 12.01.2..... More

Print this item

  Hurst Exponent in Rolling Basis
Posted by: illmattic - Jan-05-2021, 05:20 PM - Forum: Data Science - Replies (1)

Hello,

I have come across code (https://github.com/Mottl/hurst/blob/mast..._init__.py) that calculates the Hurst exponent from a time series..... More

Print this item

  Help with API (Solved)
Posted by: ebolisa - Jan-05-2021, 04:38 PM - Forum: General Coding Help - No Replies

Hi,

I'm trying to understando how API are called from a different program. In this case from a PHP file.

The php file works but the .py file is ..... More

Print this item

  Some Codes!
Posted by: Oshadha - Jan-05-2021, 03:10 PM - Forum: General Coding Help - Replies (7)

I want a code for the following things,

1. A Script that makes a new folder called MY Folder in %appdata%

2. A Script that makes a new hidden fi..... More

Print this item

  Mann Whitney U-test on several data sets
Posted by: rybina - Jan-05-2021, 02:00 PM - Forum: Data Science - Replies (2)

Hi,

I'm really struggling to find a way to do the following:

Suppose I have two groups of data sets (fictitious in this example):

group_a = [..... More

Print this item

  how to deal with problem of converting string to int
Posted by: usthbstar - Jan-05-2021, 12:56 PM - Forum: General Coding Help - Replies (1)

I am using the following function:

[python]def load_target_class(input_dir):
"""Loads target classes."""
with tf.gfile.Open(os.path.join(inpu..... More

Print this item

  Translate some code form C++ (complex vector)
Posted by: CarnariusXx - Jan-05-2021, 12:32 PM - Forum: Data Science - Replies (11)

Hi, I'm try to trnslate some code form c++ with complex numbers stack in vector. In C++ I've

[python]vector<complex<double>> test(vector<complex<d..... More

Print this item

  Pycharm and Conda
Posted by: annalma - Jan-05-2021, 12:16 PM - Forum: Data Science - Replies (4)

Hey everyone,
Usually I use PyCharm 3.8.
I'm trying to install 5 packeges for a project- numpy, scipy, matplotlib, basemap and pyhdf.
At the beginn..... More

Print this item

  Trying to get the first letter of every word in a list
Posted by: DanielCook - Jan-05-2021, 12:00 PM - Forum: General Coding Help - Replies (2)

I am trying to take out the first letter of every word in a list. It is not working. I believe the fault to be on line 9 but i can't figure out why.
..... More

Print this item

Question help please
Posted by: vatxz - Jan-05-2021, 11:06 AM - Forum: General Coding Help - Replies (1)

hello, i need help with this code.
this code is little bit of another code. the code do clicks around moving images that are then static.
my problem..... More

Print this item

  help
Posted by: thedylster - Jan-05-2021, 09:41 AM - Forum: General Coding Help - Replies (3)

this is the code
num=16
for i in range(1,16):
print(num,'x',i,'=',num*i)
import random
number=random.randint(1,16)
for counter..... More

Print this item

  eliminating letters when typed in python window
Posted by: deebo - Jan-05-2021, 09:25 AM - Forum: General Coding Help - No Replies

Hey there! I'm a novice trying to write program (using the turtle mod) that makes letters from a random word disappear (start to finish) as I type the..... More

Print this item

  Reshaping matrix
Posted by: paul18fr - Jan-05-2021, 09:13 AM - Forum: Data Science - Replies (2)

Hi All

I'm wondering how to reshape the matrix A so that it equals B?

My issue is the row order; I spent a long time playing with [i]tranpose[/..... More

Print this item

  How to rename dataframe columns based on the content in an index?
Posted by: ar_mahdavi - Jan-05-2021, 05:37 AM - Forum: General Coding Help - Replies (2)

Here is my data frame after reading the csv file and splitting it into columns.

[Image: qZQYP.png]

I would like to n..... More

Print this item

  Need Help With a Script
Posted by: SunWers - Jan-05-2021, 02:51 AM - Forum: General Coding Help - Replies (6)

Hi,

I'm still working on trying to get a script together for importing data to my cutter reports. Seems like I've had this script a million differ..... More

Print this item

  Error loading Trelby.py
Posted by: blackclover - Jan-05-2021, 02:29 AM - Forum: General Coding Help - Replies (3)

Hi,

I'm trying to run Trelby on Void Linux.
When I run the program from the terminal, I get the following error:

$ trelby
Traceback (most rece..... More

Print this item

  Slider puzzle captcha resolver, how do this?
Posted by: dw0rd1337 - Jan-04-2021, 11:55 PM - Forum: General Coding Help - No Replies

Im need to resolve captcha with puzzle and slider, how do this, maybe somebody have source?
Example:
https://ibb.co/SNW5ZZY

Print this item

  Deleting employee from list
Posted by: SephMon - Jan-04-2021, 11:29 PM - Forum: General Coding Help - Replies (3)

Can anyone tell me please why my delete_employee() function doesn't actually delete an employee from the list, I'm banging my head against a wall all ..... More

Print this item

  How to use facebook API to extract information using python and pyspark
Posted by: priyanka1 - Jan-04-2021, 11:27 PM - Forum: News and Discussions - No Replies

Can we extract the information from json file using python facebook api? I am new to python and never used facebook api.Can someone help me how to ext..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  IBKR Purchasing code issu... 2 hours ago compuman145 compuman145 General Codin...
  Creating a Mindmap progra... 4 hours ago J_Miller susan General Codin...
  A coding beginner needs h... 7 hours ago Littlefish Littlefish General Codin...
  Is the interpreter that c... 8 hours ago helendamdam helendamdam General Codin...
  Using a For Loop to subtr... Yesterday, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 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...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576691
  Tutorial Requ... 498840
  Web Scraping ... 440510
  Newbie with P... 384459
  New Users Int... 368095
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+ 12087
buran 8175
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
susan Today
jatinkumar12 Today
angelhealu504 Today
helendamdam Today
pllrdvalery Yesterday

User Panel Messages

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