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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 27 Guest(s)
Google, Mojeek, AOL

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
11 hours ago
» Replies: 11
» Views: 321
Python compiler
Forum: General Coding Help
Last Post: noisefloor
11 hours ago
» Replies: 1
» Views: 77
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 95
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 55
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,133
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 208
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 736
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,842
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 216
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 172

 
  Get max values based on unique values in another list - python
Posted by: Antonio - Jun-12-2018, 02:20 AM - Forum: Data Science - Replies (8)

In a numpy.ndarray (2d) I want to calculate the maximum of corresponding values (second column) of repetitive values (first column) in the array. Like..... More

Print this item

  How to excess external program and get a value back?
Posted by: hhanswurster - Jun-11-2018, 10:48 PM - Forum: General Coding Help - Replies (7)

Hey Guys,

i want to get a value from my camera to write it to a log file. I am using gphoto2, thats the command and the output.

[python]
pi@ras..... More

Print this item

  Diffusion limited aggregation
Posted by: pythonic - Jun-11-2018, 09:45 PM - Forum: General Coding Help - No Replies

[align=left]Hello, “diffusion limited aggregation” is an algorithm that allows drawing a pattern.
My goal is to vary some parameters in the script to..... More

Print this item

  Execute a file within another Python file in Spyder
Posted by: Antonio - Jun-11-2018, 06:46 PM - Forum: General Coding Help - Replies (1)

So I need to run a file (file_1.py) within another file (file_2.py), and use the variables/outputs that are created via file_1.py in file_2.py! In fil..... More

Print this item

  Trying to understand how import works in python
Posted by: patrick99e99 - Jun-11-2018, 06:35 PM - Forum: General Coding Help - Replies (3)

I am using a python application which requires SimpleWebsocketServer..

I have done:

[quote]python3 -m pip install git+https://github.com/ecdsa/s..... More

Print this item

  Convert element of list to integer(Two dimentional array)
Posted by: zorro_phu - Jun-11-2018, 06:08 PM - Forum: Data Science - Replies (3)

I'm trying to learn arrays(with numpy) in python3 but i am not able to figure out how do i convert the elements of list to integer(in my case i have t..... More

Print this item

  How hard is this?
Posted by: Phillips45 - Jun-11-2018, 05:49 PM - Forum: General Coding Help - No Replies

Hi all,

I am new to the RPI and a complete NOOB..I do believe Python can be used to code the below?

Please can someone tell me how difficult it..... More

Print this item

  OSError: [Errno 22] Invalid argument - wasn't there last time I ran the code!
Posted by: meganhollie - Jun-11-2018, 04:43 PM - Forum: General Coding Help - Replies (2)

Hi - I'm going to preface this by saying that I have VERY little coding experience, and am cobbling a topic modeling program for a paper I'm writing. ..... More

Print this item

  Matlab to Python
Posted by: Ariane - Jun-11-2018, 02:22 PM - Forum: Data Science - Replies (6)

I'm trying to convert the following MATLAB code to Python. So far my attempts have not yielded a positive result.

opts = detectImportOptions('Z_Azi..... More

Print this item

  Help with CSV importing
Posted by: Grin - Jun-11-2018, 01:29 PM - Forum: Homework - Replies (1)

I am attempting ..... More

Print this item

  Windows cannot find "wish.exe" - error while trying to run PAGE
Posted by: Nwb - Jun-11-2018, 12:08 PM - Forum: General Coding Help - No Replies

I have never used PAGE, this is the first time. But when I try to run it after installation, it says "Windows cannot find wish.exe". But I already hav..... More

Print this item

  python documentation
Posted by: j4py - Jun-11-2018, 11:55 AM - Forum: News and Discussions - Replies (11)

Does anyone know where I can get a python 2 / 3 API? The documentation that ships with python is a disaster. Thanx for your help.

Print this item

  Copy List [Help Needed]
Posted by: Patricamillie - Jun-11-2018, 10:53 AM - Forum: General Coding Help - No Replies

Hey all,

Any pointers on how to solve this -

A linked list is given such that each node contains an additional random pointer which could point..... More

Print this item

  Is it possible to find if Mr XXX is registered in yahhoo.fr
Posted by: sylas - Jun-11-2018, 09:07 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi all ! I just learned about BeautifulSoup. I wander if I can find if someone is registered in yahoo, and so I can send a mail to him.

Print this item

  Is there any way to simulate clicks/typing to an inactive window using Python?
Posted by: Nwb - Jun-11-2018, 06:53 AM - Forum: General Coding Help - Replies (1)

By the way, I'm a windows user. A lot of windows-automation scripting programs have this function (although not always effective) so I was wondering i..... More

Print this item

  Django - Passing data from view for use client side with JavaScript in a template
Posted by: bountyhuntr - Jun-11-2018, 06:04 AM - Forum: Web Scraping & Web Development - No Replies

Hello everyone,


I am developing a text-based RPG game in Django for learning purposes and I am wondering what the best way would be to run an eve..... More

Print this item

  beatifulsoup scrap td tag.
Posted by: piuk3man - Jun-11-2018, 04:54 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello,I 'm learning python and beatiful soup. Unfortunately, theory 's one thing and practise is another. I 'm trying to scrape a site, and to be more..... More

Print this item

  James Brown
Posted by: Skaperen - Jun-11-2018, 03:51 AM - Forum: Bar - No Replies

just imagining the James Brown song "It's a Man's World" changed to "It's a Python World".

Print this item

  Pokemon in python (beta)
Posted by: RandomCoder - Jun-11-2018, 01:01 AM - Forum: Code sharing - Replies (2)

This is a program I made from an idea I had, I will improve the program throughout, any suggestions are appreciated Smile , this is what I have f..... More

Print this item

  3D graphic
Posted by: lollie - Jun-10-2018, 06:24 PM - Forum: Data Science - Replies (2)

Hello, I have to realise a 3D graphic. Z is defined with my functions f and somme which works properly when the graphic code isn't in the script and r..... More

Print this item

  Replace null values in Json file
Posted by: burnsssss - Jun-10-2018, 05:08 PM - Forum: General Coding Help - Replies (11)

Hi all!!
i am new in forum so i have very much to read!

I have one problem with some code in python. I am trying to replace None values in Json fi..... More

Print this item

  Mobile
Posted by: Panda - Jun-10-2018, 04:26 PM - Forum: Board - Replies (6)

Can there be a mobile version of this website? I'm on my phone and everything is extremely small. The website is scaling everything on to a 4 inch scr..... More

Print this item

  How to add lables to the scatter plot?
Posted by: Jack_Sparrow - Jun-10-2018, 02:33 PM - Forum: Data Science - Replies (3)

Hello everyone,

I created a scatter plot with two numbers (Budget & Revenue)
[python]
df.plot(x='budget_adj', y = 'revenue_adj', kind = 'scatter..... More

Print this item

  how often does a word occur in this column?
Posted by: Jack_Sparrow - Jun-10-2018, 01:50 PM - Forum: Data Science - Replies (6)

Hello there,
I have data like this
Genres
Action|Adventure
Action|Adventure|Animation
Action|Adventure|Animation|Comedy|Drama
Action|Adventure|..... More

Print this item

  Help needed with lists please
Posted by: mattick - Jun-10-2018, 01:30 PM - Forum: General Coding Help - Replies (4)

Hi I'm fairly new to Python, been doing some work with lists, but have got stuck. Hoping someone maybe can help.

I need to take an input list of n..... More

Print this item

  How do I create a Dynamic Variable?
Posted by: Nwb - Jun-10-2018, 11:30 AM - Forum: General Coding Help - Replies (1)

USD = 1
USDs = 'United States'
CountryVariableName = 'USD'

CountryName = CountryVariableName + 's'
print(CountryName) would..... More

Print this item

  Need quick help on a simple regex
Posted by: Nwb - Jun-10-2018, 11:19 AM - Forum: General Coding Help - Replies (8)

I need a quick help in RegEx, I need to convert some text into a particular text format.

Example text:

[b]USD US Dollar 1.0000000000 1.0000000000
EU..... More

Print this item

  stdout buffering
Posted by: Skaperen - Jun-10-2018, 04:55 AM - Forum: General Coding Help - Replies (5)

how can i set the buffering mode for stdout? it is already open. i notice that in python3 i am getting line buffering and i..... More

Print this item

  Simple script that seems to misbehave?
Posted by: Nwb - Jun-10-2018, 04:09 AM - Forum: General Coding Help - Replies (1)

Hey y'all, so I made my first script on python yesterday, I faced some peculiar results which I could mostly debug by myself. But there is still two t..... More

Print this item

  lab experiment / encryption
Posted by: pythan - Jun-09-2018, 07:19 PM - Forum: General Coding Help - No Replies

Hi Guys,

I would like to program an application for a laboratory experiment, with which test persons should decrypt different letter sequences in n..... More

Print this item

  [split] How to make new post
Posted by: deongl - Jun-09-2018, 04:35 PM - Forum: Board - Replies (1)

plesae inform me how do i add a new post.

Print this item

  Trying to make two different strings from the same root
Posted by: De1uge - Jun-09-2018, 04:06 PM - Forum: General Coding Help - No Replies

[python]
import random

a = input()

# This is where I'm stuck
mark1 = ["*", "__", "~~"]
mark2 = ["*", "__", "~~"][:-mark1]
#I don't know the correct ..... More

Print this item

  3 Things (wew)
Posted by: Panda - Jun-09-2018, 02:08 PM - Forum: Code sharing - No Replies

I created an "Are you smarter than a fifth grader" program, and wanted to upload it here. I looked into the programming ideas and challenges thread an..... More

Print this item

  Package to find Timezone from Latitude and Longitude
Posted by: pythoneer - Jun-09-2018, 01:47 PM - Forum: General Coding Help - Replies (1)

Is there a package in python that can give me timezone in Hours:Minutes:Seconds from latitude and longitude?

Print this item

  py4e book exercise not working when compiled
Posted by: adriand - Jun-09-2018, 12:22 PM - Forum: Homework - Replies (11)

Hi,

this exercise in the Py4E course should print: 21, 31, uct.ac.za.
When I run the program (python3 filename), my results are: [b]21, -..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 11 hours ago Lou noisefloor General Codin...
  Python compiler 11 hours ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579514
  Tutorial Requ... 512998
  Web Scraping ... 442378
  Newbie with P... 386403
  New Users Int... 381793
Most reputation
buran 581
snippsat 511
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+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

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