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,304
» Latest member: virvainfotech
» Forum threads: 38,798
» Forum posts: 175,908

Full Statistics

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

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: Pedroski55
33 minutes ago
» Replies: 5
» Views: 172
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
2 hours ago
» Replies: 3
» Views: 11,084
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 10:44 AM
» Replies: 4
» Views: 174
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 04:44 AM
» Replies: 8
» Views: 696
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,816
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 167
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 142
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 229
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,223
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 336

 
  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

  How to handle paths with spaces in the name?
Posted by: zBernie - Nov-22-2018, 03:47 AM - Forum: General Coding Help - Replies (1)

I've been searching and still cannot find a solution to this issue. Under Windows 10, using Python 3.7, I'm passing a comma separated argument to the..... More

Print this item

  advapi32.SetServiceStatus() fails with error 6
Posted by: crustydave - Nov-22-2018, 03:33 AM - Forum: General Coding Help - Replies (1)

Error 6 is invalid handle, however, the handle appears to be good, I believe the error is coming from the second parameter, if I make the pointer None..... More

Print this item

  Microsoft 's great gift to Linux
Posted by: Larz60+ - Nov-22-2018, 03:09 AM - Forum: News and Discussions - Replies (5)

For years my nickname for Microsoft was Microshaft Winblows. I won't say that anymore, the release of VSCode has changed my mond. Now check this one o..... More

Print this item

  how can I create a recursive graphic with matplotlib
Posted by: royer14 - Nov-22-2018, 12:44 AM - Forum: Data Science - Replies (3)

hello to all, I am wanting to draw a graph similar to the one that will be shown in the image:
[img]http://www.mediafire.com/convkey/25b2/pn40p977hfm..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 33 minutes ago Lou Pedroski55 General Codin...
  Python Online Compiler 2 hours ago alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... Yesterday, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... Yesterday, 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...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
Most views
  The best Prog... 579483
  Tutorial Requ... 512712
  Web Scraping ... 442346
  Newbie with P... 386393
  New Users Int... 381512
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 7391
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
virvainfotech Today
IFDA123 Yesterday
TimTom420 11-27
cruisesfares 11-27
SNR 11-27

User Panel Messages

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