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,964
» Latest member: Edzed4431
» Forum threads: 38,730
» Forum posts: 175,545

Full Statistics

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

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: tester_V
25 minutes ago
» Replies: 2
» Views: 24
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
5 hours ago
» Replies: 1
» Views: 452
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
10 hours ago
» Replies: 4
» Views: 1,991
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,554
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 457
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 912
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 941
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,210
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,824
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,863

 
  Array assignments in a for loop
Posted by: mt_reilly - Nov-23-2018, 03:51 PM - Forum: Data Science - Replies (2)

I am having difficulty trying to understand why two different expression in a for loop are producing the same result. In this case, I am doing numeri..... More

Print this item

  Anaconda problem about path
Posted by: Leloup - Nov-23-2018, 03:46 PM - Forum: General Coding Help - Replies (1)

Bonjour,

I need Anaconda to separately manage the different versions of Python (2.7, 3.4, 3.7) in virtual environments. However, I get an..... More

Print this item

  Connection with firebird using python
Posted by: nick722 - Nov-23-2018, 03:40 PM - Forum: General Coding Help - No Replies

Hello guys,

I am trying to make an installer for a new system using Python, among the settings I will need to add a Firebird connection in the "ODB..... More

Print this item

  python script cant find folder where files are kept
Posted by: Shameendra - Nov-23-2018, 03:01 PM - Forum: General Coding Help - Replies (2)

I am trying to access a folder "frames" which contains image files which i want to open with python. My code is:

[python]import os
import ..... More

Print this item

  How to pivote table
Posted by: SriRajesh - Nov-23-2018, 01:59 PM - Forum: General Coding Help - Replies (1)

I have below input data and I want to pivot:
Pivoting:
By Surname(as my x-axis), calculate the count & average rank of "Auot>F" "Auot>S" "AuotR>S"

[p..... More

Print this item

  Extract Line from PDF
Posted by: equaliser - Nov-23-2018, 01:38 PM - Forum: General Coding Help - Replies (13)

Hey,

I want to extract the line, in which a specific keyword is found. So for text-documents it is very simple, because of looping through the tex..... More

Print this item

  issue in using dictionary
Posted by: amar - Nov-23-2018, 12:59 PM - Forum: General Coding Help - Replies (5)

i have dictionary type, below is output when i read dataframe using json.loads (spark)
{'name':'ename','data':'str','len':'2','add':'bgl','out':'y','..... More

Print this item

  string agg separated by comma
Posted by: shyamal_kesh - Nov-23-2018, 12:35 PM - Forum: General Coding Help - Replies (1)

dfg = pd.DataFrame({"A": [1, 1, 2, 3, 3, 4],
"B": ['AA', 'AA', 'AB', 'CD', 'CD', 'EF'],
"C": ['A1', 'B1', 'C..... More

Print this item

  File creating with question mark quffix
Posted by: pythonbabe - Nov-23-2018, 10:36 AM - Forum: General Coding Help - Replies (2)

Hi All,

Expectation is to get a file as "pre.hostname" if doesn't exist in current directory but i am getting "pre.hostname?" instead.
Can someone..... More

Print this item

  Counting flowers on a plant
Posted by: Leon - Nov-23-2018, 09:48 AM - Forum: Data Science - Replies (2)

Hello i'm looking for a solution for counting flowers in plants.
I try opencv only i can't find the right sollution.
I think its the best to filter ..... More

Print this item

  append my results to a file
Posted by: clarablanes - Nov-23-2018, 09:40 AM - Forum: General Coding Help - Replies (9)

good morning guys,

I need help:

I have done a program to obtain some data and then I have to append this data to the original file. My original ..... More

Print this item

  Create Dynamic nested Dictionaries
Posted by: Larz60+ - Nov-23-2018, 04:06 AM - Forum: Code sharing - Replies (8)

I just posted this on thread: https://python-forum.io/Thread-how-to-cr...ested-dict

It's useful enough that I'm posting it here as well:
[pyt..... More

Print this item

  python kernell crash with a ctypes program
Posted by: Jstechg - Nov-23-2018, 01:54 AM - Forum: General Coding Help - Replies (1)

We have a python program that by means of ctypes calls several functions of a C dll.

1) In the first version of this program all works right:

1...... More

Print this item

  Regex: caret character
Posted by: Truman - Nov-23-2018, 01:11 AM - Forum: Web Scraping & Web Development - Replies (3)

• A single function, getLinks, that takes in a Wikipedia article URL of the form /
wiki/<Article_Name> and returns a list of all linked article URLs ..... More

Print this item

  Function returns unaccurate value
Posted by: raulfloresgp - Nov-23-2018, 12:50 AM - Forum: General Coding Help - Replies (4)

This is an example of an issue that I have:

why if a function calls another function the return of the called function is not accurate:

I have inser..... More

Print this item

  homework
Posted by: NZedMarine - Nov-22-2018, 11:37 PM - Forum: Homework - Replies (1)

[python]ArPe = str(input("Area Or Perimeter? "))
print("Ok " + ArPe + " we will calculate"):
if arpe == "area" or "perimeter":
x = "tru..... More

Print this item

  Multiplication Table Homework
Posted by: mcnhscc39 - Nov-22-2018, 10:24 PM - Forum: Homework - Replies (6)

Still pretty new to programming and Python but I am picking it up and enjoy learning. This is part of a homework lab which just asks to create a simp..... More

Print this item

  why is user = form.getfirst("user", "").upper() safe?
Posted by: shanepy - Nov-22-2018, 08:28 PM - Forum: General Coding Help - Replies (6)

Hello,

https://docs.python.org/3.5/library/cgi....-interface

[python]import cgi
form = cgi.FieldStorage()
user = form.getfirst("..... More

Print this item

  Loop Value Stays the Same
Posted by: nesrine - Nov-22-2018, 07:54 PM - Forum: Homework - Replies (6)

[size=large]
Hello,
I have this code after the modification of W I want to obtain the new value of E.I use the for loop but the value stay the same ..... More

Print this item

  clean unicode string to contain only characters from some unicode blocks
Posted by: gmarcon - Nov-22-2018, 06:24 PM - Forum: General Coding Help - Replies (2)

Hi,

I have a unicode string and I need to remove all characters that are not part of the Latin-1 and Latin-1 Supplement Unicode block.

The only ..... More

Print this item

  Need an example!
Posted by: kimonsolo - Nov-22-2018, 04:54 PM - Forum: General Coding Help - Replies (1)

So im trying to build a bot for discord to help a small indie game i want to make search machine to search a specific .xls
for exmple if user type: ..... More

Print this item

  Returning true or false in a for loop
Posted by: bbop1232012 - Nov-22-2018, 03:46 PM - Forum: General Coding Help - Replies (3)

Hey everyone,

I'm trying to define a procedure that identifies if the length of each element in a list is the same length as the list. For example ..... More

Print this item

  Server infinite loop input from user
Posted by: tomislav91 - Nov-22-2018, 03:32 PM - Forum: General Coding Help - Replies (1)

I want to server allway ask for input and send to client,now it runs only once. I am using python 2.71. I tried to give some variable and infinite loo..... More

Print this item

  sqlalchemy DataTables::"No data available in table" when using self-joined table
Posted by: Asma - Nov-22-2018, 02:46 PM - Forum: Web Scraping & Web Development - No Replies

Hello,

I need to run a query with sqlalchemy on self-joined table, I tried to use alias as suggested by many forums but no data displayed.
Please ..... More

Print this item

  Oct2py and Matplotlib installation problems
Posted by: Leloup - Nov-22-2018, 02:31 PM - Forum: Data Science - Replies (2)

Bonjour,
I developed some functions with Matlab and I'd like to move to Python. In first time, I modified these m functions so that they are com..... More

Print this item

  how to create a nested dict..
Posted by: wardancer84 - Nov-22-2018, 02:14 PM - Forum: General Coding Help - Replies (5)

its me again, i guess i will never get my head around this language.

i have the following code..

[python]
def get_niminfo(self):
file ..... More

Print this item

  Pyforms
Posted by: Jemeronimo - Nov-22-2018, 12:30 PM - Forum: GUI - No Replies

Hey guys!

With Pyforms I'm trying to make the following

First row: 2 sliders that can have values from 0-10
Second row: 2 graphs that reac..... More

Print this item

  Why am I getting this error?
Posted by: Mike Ru - Nov-22-2018, 12:12 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm trying to add some data from a file, but getting this error.

[python]
Traceback (most recent call last):
File "spider.py", line 142, in <mo..... More

Print this item

  Can someone help me alter/complete my python 3.7 code
Posted by: kathyadventure94 - Nov-22-2018, 11:44 AM - Forum: General Coding Help - Replies (1)

Please can someone tell me the faults and how to fix them Angel

[python]
#Celebrity Dog Games
"""
The progam is a similar to the card game 'Trum..... More

Print this item

  Need to render updated recycler view
Posted by: test - Nov-22-2018, 11:31 AM - Forum: GUI - Replies (12)

hello, i'm trying to learn kivy. I need to update one part of the screen based on interaction in another part.
Specifically, i need to get on_press i..... More

Print this item

  BeautifulSoup4, How to get an HTML tag with specific class.
Posted by: Broadsworde - Nov-22-2018, 11:31 AM - Forum: Web Scraping & Web Development - Replies (6)

I have HTML code like the following from a URL:
<img class="this" alt="this" src="this_source1.gif">
<img class="this" alt="this" src="this_source2...... More

Print this item

  I have a problem about using OOP I guess :S
Posted by: osmanb06 - Nov-22-2018, 09:51 AM - Forum: Game Development - Replies (2)

[python]
import pygame
import time

pygame.init()

display_width = 600
display_height = 400

gameDisplay = pygame.display.set_mode((display_w..... More

Print this item

  Python-for loop print into single line
Posted by: dragan979 - Nov-22-2018, 08:50 AM - Forum: General Coding Help - Replies (4)

Code bellow prints each line for multiple output. Is it possible to print this output into single line:

[python]

reservations = ec.describe_i..... More

Print this item

  Rearranging elements in Python
Posted by: Nirmal - Nov-22-2018, 06:26 AM - Forum: General Coding Help - Replies (10)

i am new to Python and i cant get this.I have a List and i want to take the input from there and write those in files .

[python]p = ['Eth1/1', 'Eth..... More

Print this item

  How do I create a user input for three integers in a range or just the stop input
Posted by: Pleiades - Nov-22-2018, 05:41 AM - Forum: General Coding Help - Replies (3)

Below is the code which shows Prime numbers and Mersenne Prime Numbers. It also spits out the last digit of a long number which could be prime or not...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 25 minutes ago tester_V tester_V General Codin...
  My goal to be hired worki... 5 hours ago GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 10 hours ago arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
Most views
  The best Prog... 577189
  Tutorial Requ... 500169
  Web Scraping ... 440893
  Newbie with P... 384905
  New Users Int... 369166
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 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Edzed4431 Yesterday
chaoh1911 Yesterday
KaydenJonah098 Yesterday
carlbidwell Yesterday
llarkin6 09-26

User Panel Messages

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