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,987
» Latest member: asamulswift9609
» Forum threads: 38,736
» Forum posts: 175,577

Full Statistics

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

Latest Threads
Scwarzcohenlaw Site
Forum: General Coding Help
Last Post: asamulswift9609
23 minutes ago
» Replies: 0
» Views: 3
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
2 hours ago
» Replies: 0
» Views: 18
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
3 hours ago
» Replies: 3
» Views: 2,518
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 2
» Views: 67
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 6
» Views: 179
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,040
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 455
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,085
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,153
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 836

 
  Learning indexing with python, pick dates
Posted by: dervast - Jul-11-2019, 06:23 AM - Forum: Data Science - Replies (1)

Hi all,
I have two data frames both contain time indexes with the same time period.
I want to pick start and end periods from the first data frame..... More

Print this item

  passing an argument to avoid a global
Posted by: Skaperen - Jul-11-2019, 06:21 AM - Forum: General Coding Help - Replies (9)

i have a sort key function that needs an int passed to it by the caller of sorted() that will effect how it sets up the key to be compared. i want to..... More

Print this item

  Dynamic function name
Posted by: bhojendra - Jul-11-2019, 06:07 AM - Forum: General Coding Help - Replies (5)

I have to use dynamic function name which is defined after some decorator:

@some_decorator
def dynamic():
  return 'somethin'
Some..... More

Print this item

  Questions about __name__
Posted by: SheeppOSU - Jul-11-2019, 05:25 AM - Forum: General Coding Help - Replies (3)

I was wondering why instead of just starting up the main function, if __name__ == '__main__' is used before starting the main functio..... More

Print this item

  How to capture Single Column from Web Html Table?
Posted by: ahmedwaqas92 - Jul-11-2019, 05:12 AM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

I am trying to get complete values of three distinct columns from an online HTML table that has 13 columns in total. I have parsed the Html ..... More

Print this item

  Sys module
Posted by: Uchikago - Jul-11-2019, 05:02 AM - Forum: General Coding Help - Replies (3)

can any body explain why this didn't work
[python]#test1.py
var=99
def glob3():
var=0
import sys
glob=sys.modules['test1']
glob..... More

Print this item

  Virtualenv and an infinitely spooling interpreter?
Posted by: eblade - Jul-11-2019, 01:21 AM - Forum: General Coding Help - Replies (3)

Hi,

I have just started trying to tentatively dip a toe into Python, and have hit a wall when it comes to getting a virtualenv to create, rather th..... More

Print this item

  tell exact difference between xlim() and xticks() function
Posted by: ift38375 - Jul-11-2019, 01:11 AM - Forum: Data Science - Replies (3)

I am confused in xlim() and xticks() function of Matplotlib.pyplot.
are both same or different ? Please explain with simple graph example..

Print this item

  Py4JJavaError: An error occurred while calling o22720.csv.
Posted by: twinpiques - Jul-11-2019, 12:41 AM - Forum: General Coding Help - No Replies

Hello. Any ideas what's going on here? Full disclosure...I am relatively new to Python/Spark programming.
[u]
I'm using the following code within [b]..... More

Print this item

  How to create an 'interpreter of assembler'
Posted by: Jaccobtw - Jul-10-2019, 11:34 PM - Forum: General Coding Help - Replies (2)

I’m doing an exercise which stores data in strings in a list. Each string contains a command. The list is meant to be interpreted in order of the stri..... More

Print this item

  Button in one class, methods in another one
Posted by: alan9979 - Jul-10-2019, 08:39 PM - Forum: GUI - Replies (4)

Hi, I spent 2 days trying to solve this little exercice, creating a face with button open or closing his mouth.
I do have 2 questions about this code..... More

Print this item

  8th to 14th July 2019
Posted by: Yoriz - Jul-10-2019, 08:18 PM - Forum: Weekly Top Picks - Replies (3)

The purpose of this thread is to compile a list of posts made between Mon 8th July To Sun 14th July that have well established posts to be nominated t..... More

Print this item

  Python Embedding
Posted by: jibarra - Jul-10-2019, 07:23 PM - Forum: General Coding Help - Replies (4)

I don't know if this is the correct forum but,

I am doing some Python Embedding from:
https://docs.python.org/3.6/extending/em...ml#pure-em..... More

Print this item

  TypeError: missing 1 required positional argument (word counter Django app)
Posted by: Drone4four - Jul-10-2019, 05:22 PM - Forum: Web Scraping & Web Development - Replies (2)

I’ve got a Python script which counts and prints the number of words in a text file. The script runs beautifully. It takes a public domain book (a tex..... More

Print this item

  syntax error on list.sort()
Posted by: jjordan33 - Jul-10-2019, 03:42 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm trying to sort a list of floats by descending order, and I am not sure why I'm getting a syntax error. I am using exactly what I found onli..... More

Print this item

  I don't understand this return statement
Posted by: 357mag - Jul-10-2019, 03:41 PM - Forum: General Coding Help - Replies (4)

This book I'm working out of talks about making a boolean function. It works good and here is the code:
[python]
def is_even(number):
if(number..... More

Print this item

  I carnt see publish/subscribe messages from the class I created.
Posted by: sdf1444 - Jul-10-2019, 02:21 PM - Forum: General Coding Help - No Replies

Hi I carnt seem to print the publish/subscribe messages. I want the publish/subscribe messages from the class I created. The class I created must be k..... More

Print this item

  creating a rectangle
Posted by: sakkokakko - Jul-10-2019, 02:04 PM - Forum: General Coding Help - Replies (3)

Hello
Yesterday I downloaded python and I need to create this program.

input:
2 3
8 2 5
1 7 9

output:
8 1
2 7
5 9

2 3 means that th..... More

Print this item

  cProfile debugging
Posted by: fakka - Jul-10-2019, 01:41 PM - Forum: General Coding Help - No Replies

Have some basic code that loops through a set of databases and assigns a count to a python list.
At end I just make a sum of that python list.
The s..... More

Print this item

  line partially hidden
Posted by: paul18fr - Jul-10-2019, 10:21 AM - Forum: Data Science - Replies (2)

Dear All

I'm learning how to use matplotlib in order to plot 3D surfaces; in the current example, I do not understand why the redline is partially ..... More

Print this item

  consulting .csv file
Posted by: Biembe - Jul-10-2019, 09:06 AM - Forum: General Coding Help - Replies (1)

Hello, there!
I'm new in this forum.
Can you help to correct this code?
I get a message for syntax error.

import pandas as pd

df = pd.read..... More

Print this item

  split by character class
Posted by: Skaperen - Jul-10-2019, 05:07 AM - Forum: General Coding Help - Replies (3)

i want to split a string at the boundary of different classes of character values. in my current case a string has a few ranges of digits so i want s..... More

Print this item

  lost dictionary
Posted by: jjpy - Jul-10-2019, 04:53 AM - Forum: General Coding Help - Replies (1)

Hi Everyone,
Just new here, I'm doing an exercise about dictionary and pickle. I have this code which i use
to capture new data information

[pyth..... More

Print this item

  how to do a numeric sort
Posted by: Skaperen - Jul-10-2019, 04:13 AM - Forum: General Coding Help - Replies (11)

i think all that is needed is a sort key function for this. i want to have a list of files sorted in a numeric way so that:[output]python-3.4.0-foo.g..... More

Print this item

  Need help with 'return' in python
Posted by: Leo12143 - Jul-09-2019, 10:49 PM - Forum: General Coding Help - Replies (2)

Like i say, I need help in python please.

Print this item

  Dataframe not appending correctly
Posted by: python_newbie09 - Jul-09-2019, 07:53 PM - Forum: Data Science - Replies (2)

I have a dictionary of files in this format:

{'filea': ['test/folder2/filea', 'test/folder3/filea', 'test/folder1/filea'],
'fileb': ['test/folder..... More

Print this item

  Return a value when I equal an object from a class
Posted by: ihouses - Jul-09-2019, 07:32 PM - Forum: General Coding Help - Replies (4)

Hello,

I would like to do something like:


[python]class Hi():
def read(self):
return 23


hi = Hi()
val1 = Hi.read()
val2 = Hi[/pyt..... More

Print this item

  moving image with blit
Posted by: rwahdan - Jul-09-2019, 04:59 PM - Forum: Game Development - Replies (2)

Hi,

I am developing a game where the player sprite will move automatically after rolling a dice. based on the number of dice it will move the sprit..... More

Print this item

  Biopython question
Posted by: Aurimas - Jul-09-2019, 03:39 PM - Forum: General Coding Help - Replies (1)

Dear forum members,

I am trying to write a script to calculate distances between atoms in two separate collections (collection_AA_atoms & collectio..... More

Print this item

  if structure converted to dictionary
Posted by: metulburr - Jul-09-2019, 03:38 PM - Forum: Fundamentals - No Replies

If you do not know what a python dictionary is please read this tutorial first.

[url=..... More

Print this item

  Python 3.6.9
Posted by: djx995 - Jul-09-2019, 03:34 PM - Forum: News and Discussions - Replies (2)

Are there going to be any Windows binaries compiled for Python 3.6.9?

Thanks.

Print this item

  Plot/Image analysis %of colored area(grid)
Posted by: TiBotLCPP - Jul-09-2019, 02:33 PM - Forum: Data Science - No Replies

Hello,

For a project I plotted a neighboorhood with matplotlib. I used filled polygons.

I would like to create a script wich divide the area in..... More

Print this item

  Restarting Waitress?
Posted by: Wittermore - Jul-09-2019, 11:53 AM - Forum: Web Scraping & Web Development - Replies (3)

I'm using Waitress to serve Python/Flask web pages on CentOS.

I'm using an HTML template file in the templates folder. When I change the HTML templ..... More

Print this item

  Dark Mode
Posted by: Evil_Patrick - Jul-09-2019, 08:32 AM - Forum: Board - Replies (4)

Is this Forum available in dark mode also? Undecided

Print this item

  How to fix 'uncaught exception of type NSException' in Python
Posted by: MonsterPython - Jul-09-2019, 06:52 AM - Forum: General Coding Help - No Replies

I'm currently making a database using MySql in Python in order to collect information about hospitals. I've created different programs (like one for t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Scwarzcohenlaw Site 23 minutes ago asamulswift9609 asamulswift9609 General Codin...
  print does not open conso... 2 hours ago Tycho_2025 Tycho_2025 General Codin...
  Fred Economic Data API 3 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... 4 hours ago bimosora noisefloor General Codin...
  Parse Markdown / get the ... 4 hours ago SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577464
  Tutorial Requ... 501212
  Web Scraping ... 441087
  Newbie with P... 385158
  New Users Int... 369814
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
asamulswift9609 Today
Tycho_2025 Today
chikkamagalur Today
Costa Today
bimosora Today

User Panel Messages

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