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,953
» Latest member: bianchiluca116
» Forum threads: 38,726
» Forum posts: 175,521

Full Statistics

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

Latest Threads
how to export a dictionar...
Forum: GUI
Last Post: RonR
32 minutes ago
» Replies: 0
» Views: 26
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
7 hours ago
» Replies: 10
» Views: 29,248
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 4
» Views: 9,355
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 224
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 663
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 250
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 835
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,097
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,331
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,697

 
  looping in python
Posted by: jazzy - Jul-12-2018, 07:27 AM - Forum: Data Science - Replies (12)

df1 df2 df3 df4
e5,e100,c .... ku,kl,kd,c ... o1,c ... o20,c


e5>e100 and c<ku and o1>o10
s=1
e5<e1..... More

Print this item

  %matplotlib inline , invalid syntax
Posted by: yamoon - Jul-12-2018, 06:56 AM - Forum: Data Science - Replies (1)

Dear All

I'm trying to use %matplotlib inline to show the heatmap but i'm getting an error "Invalid syntax", can any body help to solve the problem..... More

Print this item

  Correlation & Prediction - Help
Posted by: Danijel - Jul-12-2018, 06:51 AM - Forum: General Coding Help - Replies (2)

Hi

I have a file of service order (work purpose)
I am trying to see if there is any correlation of why service orders fail/not complete
Maybe the..... More

Print this item

  Have django-extensions installed, can't find shell_plus
Posted by: Larz60+ - Jul-12-2018, 02:07 AM - Forum: Web Scraping & Web Development - Replies (7)

I am running python 3.7.0 on OpenSuse Leap 15

I have django-extensions installed, but following command fails:
[python]
./manage.py shell_plus --..... More

Print this item

  name of a function
Posted by: Skaperen - Jul-12-2018, 01:54 AM - Forum: News and Discussions - Replies (1)

i have a function that calls the hash() function on the object passed to it in the solitary argument. but it does so under try/except to avoid raisin..... More

Print this item

  i wish there was
Posted by: Skaperen - Jul-12-2018, 01:28 AM - Forum: News and Discussions - Replies (1)

i wish there was a way to have a function be able to do some big complex calculation to create a big data reference table that is exactly the same eac..... More

Print this item

  Easygui
Posted by: Izzy32 - Jul-11-2018, 07:36 PM - Forum: GUI - Replies (11)

Hi. I need help with easygui. I am frighteningly New at coding. I don’t know how to fix the problem of the error message I receive.

[python]

>>>..... More

Print this item

  Error while creating new Creating Models on Django
Posted by: aniyanetworks - Jul-11-2018, 07:13 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello Foks,
i am not able to run my python server, i am getting this error, please assist me.
Thank you
Manam'
[quote]C:\Project\My1stDJangoSite>p..... More

Print this item

  python environment variables
Posted by: riyengar - Jul-11-2018, 06:02 PM - Forum: General Coding Help - Replies (1)

Hello,

I am trying to load environment variables defined in a config file for use in another python script. Examples I see are like loading the fil..... More

Print this item

  UnitTesting
Posted by: saisankalpj - Jul-11-2018, 05:05 PM - Forum: General Coding Help - Replies (2)

when i am writing UnitTesting in Python,inside the test mothed i have initiated the logger ,and altogether i have three tests methods.For the first te..... More

Print this item

  Parsing and Editing a Structured Text File
Posted by: norsemanGrey - Jul-11-2018, 04:00 PM - Forum: General Coding Help - Replies (1)

Hi. First I want to say that I'm kind of new to Python, but I have been through some basics so I am not beginning from scratch :)

My company is usi..... More

Print this item

  Get Webcam Image from URL - Octoprint
Posted by: Konff - Jul-11-2018, 03:02 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello everyone
I am currently writing a script to output the current progress from my 3D printer. I use Octoprint to control the printer remotely. I..... More

Print this item

  error in upgrading python 24. to 2.7
Posted by: singhraj3110 - Jul-11-2018, 02:25 PM - Forum: General Coding Help - Replies (3)

Hello All,
I upgraded my python code from 2.4 to 2.7 and getting one error
error: ushort format requires 0 <= number <= USHRT_MAX
So, I want to kn..... More

Print this item

  Stopwatch
Posted by: Panda - Jul-11-2018, 01:19 PM - Forum: General Coding Help - Replies (1)

How do i create a stopwatch that counts up until a certain value is entered inside of an input?

Print this item

  Autocomplete list of tuples data
Posted by: dimvord - Jul-11-2018, 11:55 AM - Forum: GUI - Replies (2)

The code below works fine if the list (=test_list) is defined as test_list=['aaa','xxxxxx','a1a1a11',.....].
When the test_list gets values from an s..... More

Print this item

  regex to extract only yy or yyyy
Posted by: metalray - Jul-11-2018, 11:29 AM - Forum: General Coding Help - Replies (2)

Dear Python/Regex Experts,

I have two regex patterns that I use in Python that need a little improvement.

1. #m/d/yy month in Digits e.g. 1/2/98..... More

Print this item

  Pandas segmenting groupby average
Posted by: brocq_18 - Jul-11-2018, 10:54 AM - Forum: Data Science - No Replies

I have 3 columns in a pandas dataframe, cars bikes and price. I want to find the average price per cars and bikes. The data seems to have decimal valu..... More

Print this item

  all_protocols() empty
Posted by: daviddoherty - Jul-11-2018, 09:24 AM - Forum: General Coding Help - No Replies

Hi Folks

I have looked around the forum but not seen this issue here, so can someone have a look at this and let me know what I am doing wrong, ple..... More

Print this item

  Close Toplevel after clicking button
Posted by: jollydragon - Jul-11-2018, 07:14 AM - Forum: GUI - Replies (3)

After runing below code, got below error.
How to colse the Toplevel window after clicking the button in my Python v3.6.5?
Thanks for any help or sug..... More

Print this item

  generate trades detail from code
Posted by: bhagwat123 - Jul-11-2018, 06:33 AM - Forum: General Coding Help - No Replies

python code help

[python]initial_capital= float(1000.0)
positions = pd.DataFrame(index=signals.index).fillna(0.0)
positions['AAPL'] = 100*signals..... More

Print this item

  Any idea on how to keep score of My Tic Tac Toe game?
Posted by: Minindis02 - Jul-11-2018, 06:00 AM - Forum: General Coding Help - Replies (1)

Sup the boys,

I would like to have rounds so that like if the player or AI gets to like maybe a score of like 5 or something it prints "you have wo..... More

Print this item

  Rigid Body Simulation in 3D with constraints
Posted by: FumingElephant - Jul-11-2018, 12:55 AM - Forum: General Coding Help - Replies (1)

I'm essentially trying to simulate a cylinder with a mass attached to it via a joint that can rotate in a 2D plane perpendicular to the cylinder. Are ..... More

Print this item

  Failing to install Flask on Windows using pip
Posted by: shayon - Jul-11-2018, 12:28 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello Everyone.
i am new here and beginner in flask. I have a problem with installing flask and all package with pip. I tried "pip install flask" and..... More

Print this item

  TypeError: can't multiply sequence by non-int of type 'complex'
Posted by: FeverDream - Jul-10-2018, 10:51 PM - Forum: Homework - Replies (2)

The aim of my program is to do the near field diffraction simulation. I feel like my code should work and expected to get a 2D intensity plot, but I k..... More

Print this item

  Run function in parallel but inherite dynamic data from the previous function
Posted by: atizva - Jul-10-2018, 10:29 PM - Forum: General Coding Help - Replies (4)

I'm trying to run multiple functions simultaneously:

-or so called functions because they belong to a class:
[python]
from sh import t..... More

Print this item

  JOB: Python Developer @ Lucasfilm (SF)
Posted by: amandarecruits - Jul-10-2018, 10:14 PM - Forum: Web Scraping & Web Development - No Replies

Senior Full Stack Python Developer

Location: San Francisco, CA
Type: Full-time, salaried

Be honest: You’re probably already working in software..... More

Print this item

  Help Editing/Problem with outputs
Posted by: stanthaman42 - Jul-10-2018, 09:28 PM - Forum: General Coding Help - Replies (7)

Hello there. I am Currently working on a program that produces every number (1000-9999) and their prime permutations(single, double, triple, and quadr..... More

Print this item

  running just one process shared among uses
Posted by: Skaperen - Jul-10-2018, 05:43 PM - Forum: General Coding Help - Replies (3)

a lot of programs, particularly big GUI programs like web browsers, will use the previously started process when an attempt is made to start a 2nd con..... More

Print this item

  Is Python strongly or weakly typed?
Posted by: amandio - Jul-10-2018, 05:31 PM - Forum: General Coding Help - Replies (3)

I'm a computers network studant from João Pessoa-Paraiba-Brazil, and I'm studying programming. Python is the programming language that we are atudying..... More

Print this item

  Neural Network Enlargement
Posted by: philphed - Jul-10-2018, 04:46 PM - Forum: Data Science - Replies (3)

Hello,

I am very new to the topic of NN and to Python, so please forgive me in case my question is silly. I tried to work on it myself but couldn't..... More

Print this item

  Sqlalchemy Query into tuple
Posted by: KirkmanJ - Jul-10-2018, 02:56 PM - Forum: General Coding Help - No Replies

If i was to query a SQLALCHEMY database for a row, like so:
[python]
product_query= test_result.query.filter(test_result.test_details =='Overall').fi..... More

Print this item

  Control chart in Python
Posted by: ksasi2k3 - Jul-10-2018, 02:13 PM - Forum: Data Science - Replies (6)

Hello,

I need to develop control chart (P chart) in Python with the purpose of highlighting the violating points to end users.

Please suggest.
..... More

Print this item

  Do I need to uninstall my current Python distribution (3.7) to install Anaconda?
Posted by: Tim - Jul-10-2018, 01:17 PM - Forum: General Coding Help - Replies (2)

Hi there,
I'm was advised to install Python-Anaconda distribution for some code to implement. My current distribution of python is the default one f..... More

Print this item

  factorial with gui
Posted by: deba34133 - Jul-10-2018, 12:58 PM - Forum: GUI - No Replies

[python]from tkinter import *

gui=Tk()
gui.title('Math')
def oet():
aoet=Tk()
aoet.title("Odd or Even")
def o_e_t():
b=a...... More

Print this item

  exclusive bitwise OR
Posted by: bluefrog - Jul-10-2018, 12:26 PM - Forum: Homework - Replies (1)

Hi

Am using 3.6.5
I'm trying to display the result of a bitwise operation, like so:
[python]xor = 0b0011 ^ 0b0111
print ("Example of exclusive OR - x..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] how to export a... 32 minutes ago RonR RonR GUI
  pip install requests does... 7 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 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
Most views
  The best Prog... 576816
  Tutorial Requ... 499225
  Web Scraping ... 440603
  Newbie with P... 384578
  New Users Int... 368466
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+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bianchiluca116 Today
Jorgecog Today
adamsmith12 Today
Ronny Today
Luciana Today

User Panel Messages

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