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,292
» Latest member: Elevyn
» Forum threads: 38,793
» Forum posts: 175,882

Full Statistics

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

Latest Threads
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
5 hours ago
» Replies: 6
» Views: 188
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:18 PM
» Replies: 5
» Views: 87
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 70
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,507
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 165
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 77
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,108
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,313
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 429
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 250

 
  How to Call a method of class having no argument
Posted by: dataplumber - Oct-30-2019, 05:59 PM - Forum: General Coding Help - Replies (7)

I am trying to call the method of the class having no arguments but it is failing.

[python]
class ab:
def a():
print("in..... More

Print this item

  Need help understanding some code
Posted by: menator01 - Oct-30-2019, 05:31 PM - Forum: Game Development - Replies (1)

I've been practicing with classes a little with some code I found.
The original code was not in a class so that is my project to put it in one.
Ever..... More

Print this item

  Guido van Rossum Retires
Posted by: ichabod801 - Oct-30-2019, 03:51 PM - Forum: News and Discussions - Replies (1)

There is an announcement on the Dropbox site about Guido leaving the company for r..... More

Print this item

  spread values of dataset equally over fixed number of bins
Posted by: moose_man - Oct-30-2019, 02:57 PM - Forum: Data Science - Replies (3)

Hi all,

I used numpy to bin some data with following simple code:

a = np.array(data)
histo = np.histogram(a,bins=nbrbins)
..... More

Print this item

  How I can use multiprocessing with upickled module variable?
Posted by: AlekseyPython - Oct-30-2019, 02:56 PM - Forum: General Coding Help - Replies (3)

Python 3.7.1

I use multiprocessing.Pool for paralleling my code, and it work good. But when I add contextvars in working module (for my coroutines,..... More

Print this item

  Error: too many values to unpack
Posted by: Mike - Oct-30-2019, 02:54 PM - Forum: General Coding Help - Replies (1)

Hello,
I have a script that should open external ascii file, take the first two columns, add each row and output file with first two columns with sum..... More

Print this item

  ARPANET 50
Posted by: perfringo - Oct-30-2019, 12:04 PM - Forum: Bar - Replies (1)

50 years ago (29th of October 1969) first letters were transmitted over ARPANET (first three of them happened to be 'l', 'o' ---system crash--- 'l' *..... More

Print this item

  3D covariance matrix - vectrorizing python
Posted by: Luca_R - Oct-30-2019, 10:54 AM - Forum: General Coding Help - No Replies

I need to speed up a python code, I would like to avoid the use of the following for cycle, where "data" matrix has dimension [dim1xdim2]:

[python]..... More

Print this item

  Delete a whole row if all cells contain certain values
Posted by: tuxman - Oct-30-2019, 09:39 AM - Forum: General Coding Help - Replies (1)

Hello !

I try to delete all rows from a Excel sheet, who satisfied this condition: all cells from a row must contain only the values "-" or "".

..... More

Print this item

  Why doesn't my spider find body text?
Posted by: sigalizer - Oct-30-2019, 08:54 AM - Forum: Web Scraping & Web Development - Replies (5)

So I'm trying to work with a Scrapy project that I found, called RISJbot (GitHub) for extracting the cont..... More

Print this item

  variables in a class
Posted by: Skaperen - Oct-30-2019, 07:48 AM - Forum: News and Discussions - Replies (3)

a while back, someone suggested to use variables in a class to share a namespace between a function or method. i am wondering if this class can do th..... More

Print this item

  can't open excel with my macos
Posted by: dcc - Oct-30-2019, 04:18 AM - Forum: General Coding Help - No Replies

I hope to help,thank you
What happened to aeosa?

[error]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Version..... More

Print this item

  Sharing memory across threads / scripts
Posted by: Radek - Oct-30-2019, 03:20 AM - Forum: General Coding Help - Replies (1)

Hi,

I am trying to gather data from independent python scripts (data acquisition devices) into the main program. I came across multiprocessing, bu..... More

Print this item

  Pivot Table hash problem
Posted by: stilwellj - Oct-30-2019, 02:49 AM - Forum: Data Science - Replies (1)

I am trying to turn my data frame into a pivot table. I am getting this error "TypeError: 'DataFrame' objects are mutable, thus they cannot be hashed"..... More

Print this item

  Python 3.8 to be in Ubuntu 20.04 Focal Fossa LTS
Posted by: Skaperen - Oct-30-2019, 02:04 AM - Forum: News and Discussions - Replies (4)

Python 3.8 to be in Ubuntu 20.04 Focal Fossa LTS

https://www.phoronix.com/scan.php?page=n...evelopment

Print this item

  capture stdout from child processes
Posted by: Skaperen - Oct-30-2019, 12:11 AM - Forum: News and Discussions - No Replies

the parent process, which is not running any threads, will be running more than one child processes (using the multiprocessing module) that will be ru..... More

Print this item

  not bitwise ~15
Posted by: 1885 - Oct-29-2019, 10:43 PM - Forum: General Coding Help - Replies (3)

>>~15
returns a -16
>>~15&255
returns 240

I'm not sure why.
Please throw me a bone.

Print this item

  Is the #! (shebang) line obsolete?
Posted by: newbieAuggie2019 - Oct-29-2019, 09:25 PM - Forum: General Coding Help - Replies (4)

Hi!

It looks like the Python language is advancing much much quicker than books on Python, so I find that although some sites explain..... More

Print this item

  Comparison Operator "is" idle vs python command
Posted by: spisatus - Oct-29-2019, 08:20 PM - Forum: General Coding Help - Replies (3)

I don't understand why the following results aren't the same. c = (a is b) returns True while (a is b) in python idle returns False. What aren't I und..... More

Print this item

  Potential confusion combining != with or
Posted by: Mark17 - Oct-29-2019, 07:48 PM - Forum: General Coding Help - Replies (11)

I'm trying to write a program for multiplication facts. It generates the list of facts, randomizes it, and then goes through. I just enter y or n de..... More

Print this item

  Checking a filename before reading it with pd.read_csv
Posted by: karlito - Oct-29-2019, 07:44 PM - Forum: Data Science - Replies (2)

Hi Guys,

I'm trying to read a csv file according to its type (X or Y, so if the file name starts with 125 I read the raw_file1 file otherwise raw_f..... More

Print this item

  Merge CSV Column using Pandas Data Frames
Posted by: davidlang - Oct-29-2019, 07:03 PM - Forum: General Coding Help - Replies (1)

I'm new to python so there's plenty of things which I likely could improve upon with my code but the main focus is, "How to merge columns of data from..... More

Print this item

  Changing Title
Posted by: Niv_Neos - Oct-29-2019, 03:59 PM - Forum: Board - Replies (2)

Hey, I just have a simple question, how do you change the title under your name and address? Thank you.

Print this item

  How to change a dataframe column to lower case
Posted by: zhujp98 - Oct-29-2019, 03:42 PM - Forum: General Coding Help - Replies (5)

[code]
# Import pandas library
import pandas as pd

# initialize list of lists
data = [['tom', 10], ['nick', 15], ['juli', 14]]

# Crea..... More

Print this item

  Trying to do an interface for our Turtlebot robot
Posted by: antoninovara - Oct-29-2019, 03:25 PM - Forum: GUI - Replies (3)

Hello every one!

My name is Antonino Vara and I work as a teacher in a Secondary School in Badajoz (SPain)

I have made an interface for the robo..... More

Print this item

  Coding Help
Posted by: k2d2 - Oct-29-2019, 03:08 PM - Forum: General Coding Help - Replies (8)

Hello, I am trying to solve a puzzle that is written in python. The solution is a set of gps coordinates like "N 38 32.321 W 90 31.312" The statement ..... More

Print this item

  Copy a File & Increment File Count
Posted by: xingfang - Oct-29-2019, 02:55 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I try to create a script with the following code but getting errors. Can some one help? Why the main() can't be used with the import?
..... More

Print this item

  Consumers and the Data Science Trend
Posted by: Niv_Neos - Oct-29-2019, 12:59 PM - Forum: News and Discussions - Replies (9)

At the current posting of this thread, Data science is really hot in the consumer sphere around the world, with the entrepreneur culture being the bas..... More

Print this item

  misunderstanding of format in print function
Posted by: Harvey - Oct-29-2019, 12:38 PM - Forum: General Coding Help - Replies (2)

Hello,
I'm using Python 3.7.0 32-bit and wanted to print some variables with the format syntax
The variables are :
[python]client_address: ('192.16..... More

Print this item

  Jython macro which uses PythonInterpreter and Redis script gives an error
Posted by: rkanumola - Oct-29-2019, 12:05 PM - Forum: General Coding Help - Replies (2)

Hi,

We are trying to use Jython with Redis script within confluence using a Jython macro.
We are able to execute the action using Jython from the ..... More

Print this item

  Understand for range concept
Posted by: RavCOder - Oct-29-2019, 11:53 AM - Forum: General Coding Help - Replies (4)

Hi everyoine,

I had a doubt about for range in Python when I also use string length or array, for example:
[python]
def name(s):

l = s.sp..... More

Print this item

  print Vietnamese str in python 3
Posted by: hadoan - Oct-29-2019, 09:43 AM - Forum: General Coding Help - Replies (6)

Hi everyone.

I want to print and type Vietnamese string on terminal window.. but I could not printed it.

sample text : print("Tôi là người việt..... More

Print this item

  Ignore Folder
Posted by: Evil_Patrick - Oct-29-2019, 07:07 AM - Forum: General Coding Help - Replies (3)

How to ignore folder in the dir.
It's not a big problem but still, I don't want to rename folder also.

[python]
import os

location = input("En..... More

Print this item

  JSON vs PYON
Posted by: Skaperen - Oct-29-2019, 04:03 AM - Forum: News and Discussions - Replies (18)

JSON (JavaScript Object Notation) is really just data in JavaScript syntax. you could insert it at the front of JavaScript source code with an assign..... More

Print this item

  How can i judge 1st string position is correct number
Posted by: christing - Oct-29-2019, 04:00 AM - Forum: General Coding Help - Replies (3)

May i ask. what function i can use to make me confirm my string position number one number if i get 1, i will get ok else i will get fail.

below is..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... 5 hours ago drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... Yesterday, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
Most views
  The best Prog... 579314
  Tutorial Requ... 512216
  Web Scraping ... 442207
  Newbie with P... 386312
  New Users Int... 379927
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+ 12109
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Elevyn Today
kienvtm Today
irukson Today
J2M Yesterday
jackhunter Yesterday

User Panel Messages

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