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,283
» Latest member: alexferrina
» Forum threads: 38,793
» Forum posts: 175,876

Full Statistics

Online Users
There are currently 35 online users.
» 1 Member(s) | 29 Guest(s)
Bing, Google, Applebot, AOL, lovedeep

Latest Threads
LhanePulse
Forum: General Coding Help
Last Post: Gichardaxora
1 hour ago
» Replies: 0
» Views: 5
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
10 hours ago
» Replies: 5
» Views: 110
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 47
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,482
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 139
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 62
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,065
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,298
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 365
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 204

 
  Python error
Posted by: SamAnw - Feb-14-2020, 04:59 AM - Forum: General Coding Help - Replies (1)

Hello everyone!

I've been working on this program:
[python]
txt = "Prob03.in.txt"
msg = open(txt, "r")
msg = msg.read()
n=int
countCase=1
fo..... More

Print this item

  How to capture an error message
Posted by: TheHacker707 - Feb-14-2020, 01:00 AM - Forum: General Coding Help - Replies (4)

Hello, I need a way to capture an error message in a variable. For example:
[python]
>>> print('2'+2)
Traceback (most recent call last):
File "<..... More

Print this item

  Other English forum on python website
Posted by: stullis - Feb-13-2020, 11:40 PM - Forum: Board - Replies (4)

So, what's up with the other English forum on the community page. Are we moving over there?

Print this item

  Replacing symbols by "
Posted by: Tiihu - Feb-13-2020, 08:34 PM - Forum: General Coding Help - Replies (1)

I created a project using Russian letters and it was working. Today I decided to add some new stuff and it started to print a w..... More

Print this item

  Utaw library
Posted by: Gribouillis - Feb-13-2020, 07:57 PM - Forum: News and Discussions - No Replies

Have a look at this very simple utaw library. It wraps the unittest assert... functions so that they can be ..... More

Print this item

  Need to identify sheet color in excel workbook
Posted by: chewy1418 - Feb-13-2020, 07:31 PM - Forum: General Coding Help - Replies (2)

Hi all,

I have a given excel workbook that has multiple sheets. Some of these sheets have a colored background to them. Unfortunately, I am having ..... More

Print this item

  How to get the data
Posted by: William369 - Feb-13-2020, 06:17 PM - Forum: General Coding Help - Replies (2)

Hi I am new to python and I installed the requirements then I ran the main.py file then what I should do to browsse the get the json data ? here is th..... More

Print this item

  How to define index column name using df.to_csv
Posted by: SriRajesh - Feb-13-2020, 03:45 PM - Forum: General Coding Help - No Replies

Hi,
I have dataframe, and I want to write to csv. But when write to csv, the first column name disaaper (which is Index)

Before write,
Index c1 c2
A ..... More

Print this item

  Converting SQL Code To Python Code Query
Posted by: eddywinch82 - Feb-13-2020, 03:43 PM - Forum: General Coding Help - Replies (13)

Hi there,

Is there any Python Utility available on the Internet, that can convert SQL Code, to Python Code ?

Here is the SQL Code, I would like ..... More

Print this item

  Is it mandatory to call superclass init inside the class init?
Posted by: psolar - Feb-13-2020, 03:22 PM - Forum: General Coding Help - Replies (3)

Hello all,

Given a class A and a class B inherited from A, is it mandatory to call A.__init__(self) from B __init__ or could be possible to call it ..... More

Print this item

  How to get row row index of matching row
Posted by: SriRajesh - Feb-13-2020, 02:35 PM - Forum: General Coding Help - No Replies

Hi,
I have dataframe,
df1:

Name  rank
A     na
B     na  
C     na
D     na
df2:
[python]Category names rank
std ..... More

Print this item

  Need help I’m new at this
Posted by: Pelaw - Feb-13-2020, 02:13 PM - Forum: General Coding Help - Replies (7)

I have a number generator app I’m building. When i get the return i get the numbers looking like this. [2, 3, 5, 6] how can i get only the numbers wit..... More

Print this item

  urllib.error.HTTPError: HTTP Error 404: Not Found
Posted by: ckkkkk - Feb-13-2020, 02:10 PM - Forum: Web Scraping & Web Development - Replies (4)

This is the first time i am using the Google API key and the code is suppose to open up the browser when there is a new video uploaded from the channe..... More

Print this item

  [split] AttributeError: 'str' object has no attribute 'read'
Posted by: laxmipython - Feb-13-2020, 01:14 PM - Forum: General Coding Help - Replies (2)

Hai everybody,
i write a code to open a txt file by input method but I am getting an error can any body help me.
this is the code

[python]import ..... More

Print this item

  Multiple lambda functions in zipped list not executing
Posted by: psolar - Feb-13-2020, 12:51 PM - Forum: General Coding Help - No Replies

I want to execute multiple functions that have different arguments when a condition is satisfied, but I never get any of them executed with the correc..... More

Print this item

  [split] help a brother am so new
Posted by: MohsinCoding - Feb-13-2020, 12:42 PM - Forum: General Coding Help - Replies (3)

Hi there,

I am new with Python and would like anyone to help me with the following code:

[python]fibLimit= eval(input('Enter how many Fibonacci ..... More

Print this item

  substring function to create new column
Posted by: Chandan - Feb-13-2020, 09:17 AM - Forum: Data Science - Replies (6)

Hi There,
I am new to python so please be kind to me.
Below is the data frame and the requirement:

[python]data = {'id': ['aa11bc', 'bb22cd', 'cc..... More

Print this item

  Updating the Conda environment
Posted by: tsgd84 - Feb-13-2020, 07:37 AM - Forum: News and Discussions - No Replies

I have a conda environment which has python 3.5. This conda environment includes the packages from conda as well as from pypi (pip wheels)
Now I woul..... More

Print this item

  Relating 2 Classes
Posted by: wew044 - Feb-13-2020, 06:33 AM - Forum: General Coding Help - Replies (2)

Hello everyone,

I have a robot class and a person class, I am trying to do the following:

1. find the person who is sitting
2. then use input f..... More

Print this item

  how to get some values from js on python console by python code
Posted by: vivekagrey - Feb-13-2020, 05:33 AM - Forum: General Coding Help - Replies (1)

i am executing js map api from my python script. I want to use a value from the js in my python code.Is there any way to get the value from variabe i..... More

Print this item

  Want to learn Python compilation and virtual machine
Posted by: IJB - Feb-13-2020, 05:05 AM - Forum: General Coding Help - Replies (3)

Hey there guys, hope everyone is well! I am really interested in learning how Python works under the hood with regards to compilation and the python ..... More

Print this item

  exception in side if clause
Posted by: sbabu - Feb-13-2020, 04:55 AM - Forum: Homework - Replies (6)

Hi,

I am trying to raise an exception if the no is not in tuple. Where do I include the exception. Tried different ways. Getting indentation error ..... More

Print this item

  flask issues with app structuring
Posted by: sidk23396 - Feb-12-2020, 08:53 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi all,

I am new to this forum. I recently started working on my first flask application. I am having some issues with imports in my project. My pr..... More

Print this item

  Lime for regression interpretability
Posted by: Scott - Feb-12-2020, 08:09 PM - Forum: Data Science - Replies (5)

Hi everyone,

I am trying to pip install lime for regression interpretability but am getting the following error in Anaconda prompt:

ERROR: Could..... More

Print this item

  Maths and python: Compute stress level
Posted by: cheerful - Feb-12-2020, 07:37 PM - Forum: Homework - Replies (1)

Hi Expert,

I have a very though question to implement in python. It looks simple but hard. The question is as follow:

A student is preparing for..... More

Print this item

  Python3 Tkinter Calculator
Posted by: brunolemos - Feb-12-2020, 07:20 PM - Forum: Code Review - No Replies

Module: main.py

[python]import tkinter
import application


class TkinterWindow(tkinter.Tk):
def __init__(self):
super().__init__..... More

Print this item

  n=Help using Delft3D in python
Posted by: Ana_Bastos - Feb-12-2020, 07:05 PM - Forum: General Coding Help - No Replies

Hi
I need some help I`m trying to change a script from matlab to python. The code in matlab is used to process data from numerical number using delft..... More

Print this item

  loading_model
Posted by: raghav7203 - Feb-12-2020, 06:24 PM - Forum: Data Science - Replies (1)

[error]
loaded_model = model_from_json(loaded_model_json)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py", line 664, in model..... More

Print this item

  NSA Python Traning Document as PDF
Posted by: wavic - Feb-12-2020, 05:58 PM - Forum: News and Discussions - Replies (3)

Someone requested NSA on Twitter for their Python training materials and he got back a four hundred pages document which he turned into PDF.
Here is ..... More

Print this item

  How to modify data frame row value
Posted by: SriRajesh - Feb-12-2020, 05:46 PM - Forum: Data Science - No Replies

Hi,
I have dataframe:
df3:
[python]name type score combined
A t1 0 A_t1
B t2 0 B_t2
C t2 1 C_t2
A t2 1 A..... More

Print this item

  Does the order of columns in the DataFrame matter?
Posted by: new_to_python - Feb-12-2020, 04:09 PM - Forum: Data Science - Replies (11)

Hi, I noticed that sometimes when doing certain operations, the order of the columns in the DataFrame got changed automatically. Same thing happened w..... More

Print this item

  needed str around a file pathname to open it
Posted by: adetheheat - Feb-12-2020, 04:03 PM - Forum: General Coding Help - Replies (1)

I obtained a file pathname ending with .lst in the root dir like this:

for file_path in Path(args.path).glob('**/*.lst'):
and..... More

Print this item

  Check for a special characters in a column and flag it
Posted by: ayomayam - Feb-12-2020, 02:57 PM - Forum: General Coding Help - No Replies

I have a data frame with a below column and would like to do some characters/special character search on it

Price
-----
123
$123
-123
A123
e123
234.5..... More

Print this item

  loop in pyautogui (python automation GUI application)
Posted by: pyprogrammer - Feb-12-2020, 02:52 PM - Forum: General Coding Help - No Replies

HI!I'm working on automation with my "exceldata to GUI app import". It goes quite well, but I have an issue with loop. When I'm looping, it imports da..... More

Print this item

  How to make table
Posted by: SriRajesh - Feb-12-2020, 02:50 PM - Forum: Data Science - No Replies

Hi,
I have data as below:
[python]name category date score
Z s1 2020-02-12
A s1 2020-02-12
B s2 2020-01-23
U s1 ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhanePulse 1 hour ago Gichardaxora Gichardaxora General Codin...
  data fetching for indian ... 10 hours ago drakhsin snippsat Web Scraping ...
  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... 579255
  Tutorial Requ... 512101
  Web Scraping ... 442185
  Newbie with P... 386294
  New Users Int... 379594
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 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexferrina Today
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21

User Panel Messages

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