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,296
» Latest member: nicos18
» Forum threads: 38,795
» Forum posts: 175,886

Full Statistics

Online Users
There are currently 54 online users.
» 0 Member(s) | 46 Guest(s)
Bing, Google, Facebook Dev, AOL, Mojeek

Latest Threads
My regex function is not ...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 1
» Views: 52
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:51 AM
» Replies: 1
» Views: 60
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 231
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 121
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 82
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,518
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 170
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 80
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,139
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,322

 
  Problem in creating a vector
Posted by: termo - Oct-01-2019, 03:38 PM - Forum: General Coding Help - Replies (11)

I need to create a vector A_vec. The code line is:

[python]
self.A_vec = [self.B[0:j], self.B[j] + self.C / self.D, self.B[j+1:len(self.E)]]
[/py..... More

Print this item

  Store data in array
Posted by: kasper1903 - Oct-01-2019, 03:34 PM - Forum: Homework - Replies (4)

Hi guys.

I have some trouble with this code. I want to store my data from a csv into an array - The data consist both of text, dates and numbers. ..... More

Print this item

  get and reuse the token value with huawei modem
Posted by: Reims - Oct-01-2019, 03:28 PM - Forum: General Coding Help - Replies (1)

Hi there,
so i want to read some sms received in my huawei modem.

For that i m tryin to first get the token and session id from the 'http://192.1..... More

Print this item

  Inspect.getmembers with isclass returns an empty list
Posted by: Aldar - Oct-01-2019, 03:20 PM - Forum: General Coding Help - Replies (1)

Hello all!

I am awfully new to this site, but my lack of ideas has brought me here in hope that I might get help in here.

I am making an app, th..... More

Print this item

  Call pip3 from python folder build by me call pip3 from the /usr/bin
Posted by: Suryavarman - Oct-01-2019, 03:14 PM - Forum: General Coding Help - Replies (3)

I have build the latest release of python3 on a Mageia7 system.
Here the configuration command line:
[inline]./configure --prefix=${PY_PATH} --enable..... More

Print this item

  Registering user's drop down menu choice and finding corresponding line in files
Posted by: ShadeLily - Oct-01-2019, 12:56 PM - Forum: GUI - Replies (2)

My program uses three files to store information: "names.txt", "birthdays.txt" and "comments.txt". Every entry is on matching lines.

It gets its in..... More

Print this item

  How to resolve scipy differences?
Posted by: Oliver - Oct-01-2019, 12:54 PM - Forum: Data Science - Replies (2)

In Pycharm, I am importing "import scipy.misc" and the code that calls scipy.misc.comb(...) works fine. The scipy version in Pycharm is 0.19.1...... More

Print this item

  convert sh script to python script
Posted by: Reims - Oct-01-2019, 12:10 PM - Forum: General Coding Help - No Replies

hi, i have a sh script code and need to convert it into python script.
i m struggling finding the correspondant command.


so here is my sh script..... More

Print this item

  y-axis on seaborn heatmap not aligned properly
Posted by: amjass12 - Oct-01-2019, 10:37 AM - Forum: General Coding Help - No Replies

Hi all,

I am having an issue with a heatmap on seaborn when using pycharm (not sure if this is the right forum so apologies if this is the case)
..... More


Attached Files

Thumbnail(s)
   
Print this item

  a generator that computes squares of first 20 natural numbers
Posted by: mdshamim06 - Oct-01-2019, 10:26 AM - Forum: Homework - Replies (1)

Problem Statement:

Define two functions f1 and f2 such that,
f1 returns a list of squares of first 20 natural numbers using list comprehension.
f..... More

Print this item

  .py to no setup output
Posted by: Shaswat - Oct-01-2019, 08:58 AM - Forum: General Coding Help - Replies (1)

Hi,

I have been using python to automated few things from last couple of months. Personally, I prefer py2exe to convert my .py file to executable. ..... More

Print this item

  Looking for solution in Python
Posted by: ankitasharma111 - Oct-01-2019, 08:04 AM - Forum: General Coding Help - Replies (1)

Looking for solution in Python

Dataset 1:

Variable Source
Apple Fruit
Cherry Fruit
Banana Fruit
Peas Vegetable
Mango Fru..... More

Print this item

  Regression Event
Posted by: navigates - Oct-01-2019, 07:57 AM - Forum: Data Science - Replies (1)

I have a requriement

I have to perform a regression on a data set that has the following data
Age of Person at time of data collection
Date
chol..... More

Print this item

  Segmentation fault with large files
Posted by: kusal1 - Oct-01-2019, 06:44 AM - Forum: General Coding Help - Replies (3)

Hi,

Here I'm trying to remove double quotation character from all text files. I'm getting an error "Segmentation fault" while I reading more than 8gb..... More

Print this item

  text box field
Posted by: vishnu - Oct-01-2019, 06:20 AM - Forum: General Coding Help - Replies (4)

Hi, how to check whether the field is Textbox using python in selenium web driver.

Print this item

  Yahtzee
Posted by: sdickey9480 - Oct-01-2019, 03:41 AM - Forum: Homework - Replies (1)

The following program is a simplified version of Yahtzee, using only 3 die, and keeps a running total of your score vs the computer. Can anybody tell ..... More

Print this item

  Scraping a CRM
Posted by: OscarBoots - Oct-01-2019, 03:29 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi Forum,

I'm trying to scrape some data regularly from the company CRM (Customer Relationship Management) tool that contains all the data entered ..... More

Print this item

  Unsolicited GitHub
Posted by: ichabod801 - Oct-01-2019, 01:26 AM - Forum: News and Discussions - Replies (7)

I have some GitHub repositories, and as some of you probably noticed, I've put a lot of work into the t_games one. So I got a pull request from someon..... More

Print this item

  translate \ to / ?
Posted by: Skaperen - Oct-01-2019, 12:25 AM - Forum: General Coding Help - Replies (4)

i see many examples where / filename separators are used for Windows. but a user of my script on Windows might type in \ as the file separator. shou..... More

Print this item

  Python code suddenly not working anymore
Posted by: mike_b - Oct-01-2019, 12:17 AM - Forum: General Coding Help - Replies (5)

I have a not too complicated python code that I have used pretty much every day until last week. It just reads an Excel file and lets me pick items an..... More

Print this item

  how to set character buffering?
Posted by: Skaperen - Oct-01-2019, 12:08 AM - Forum: General Coding Help - Replies (2)

how can i set character buffering on stdout so that print('foo',end='') immediately outputs "foo" without a newline?

Print this item

  Function question
Posted by: JimBob9432 - Sep-30-2019, 11:20 PM - Forum: Homework - Replies (2)

So, for my homework assignment, I am required to write a function called "check_answer" which will determine if a given addition or subtraction proble..... More

Print this item

  Need help with an assignment, not an answer.
Posted by: celtickodiak - Sep-30-2019, 10:59 PM - Forum: Homework - Replies (4)

So I was given code to essentially begin the assignment, but for some reason I cannot for the life of me figure out where to go with it. I tried to do..... More

Print this item

  Reading Multiple Sheets using Pandas
Posted by: dhiliptcs - Sep-30-2019, 09:54 PM - Forum: Data Science - Replies (1)

HI-

I am trying to read multiple sheets using Pandas, by parameterizing those Sheet names and column names
While reading the parameter, it is conside..... More

Print this item

  Sinus Approx
Posted by: Mebujo - Sep-30-2019, 09:36 PM - Forum: Homework - Replies (5)

Hi everyone,
im tryna write a program that prints an Approx of a sinus(x) using this:
sinus(x)=x-((x**3)/3!)+((x**5)/5!)-((x**7)/7!)+...

so in my..... More

Print this item

  String add prefix & suffix
Posted by: nahom - Sep-30-2019, 09:11 PM - Forum: General Coding Help - Replies (3)

How can I do this in Python ? newbie here

1,2,3 to tmp[1],tmp[2],tmp[3]
it can be 1 to tmp[1]

1,2 to tmp[1],tmp[2]
basically input can be 1 or..... More

Print this item

  Creating a list from a comprehension using a list
Posted by: rm197 - Sep-30-2019, 06:23 PM - Forum: General Coding Help - Replies (6)

[python]
keyIDs = list(jsonData.keys()) #list of IDs
listOfValsFromKeys = students[keyIDs[i] for i in range(len(keyIDs))] #list of names
[/pyt..... More

Print this item

  Need help with a function that calls other functions.
Posted by: skurrtboi - Sep-30-2019, 06:06 PM - Forum: General Coding Help - Replies (4)

Im pretty new at programming, but atm im trying to make a function that takes two user inputs and use the input on previously made functions.
I only ..... More

Print this item

  [Scrapy] web scrape help
Posted by: joe_momma - Sep-30-2019, 05:18 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,
downloaded scrapy and went through the tutorials and still trying to understand the selector
aspect of scraping. So I thought scrape a differ..... More

Print this item

  Something is wrong with my logic in this program
Posted by: newbieAuggie2019 - Sep-30-2019, 04:28 PM - Forum: General Coding Help - Replies (4)

Hi!

First, I made a small program to draw a poligon whose number of sides is entered by the user:

[python]# mawp_01_choosepoligon_01.py
#
# It..... More

Print this item

  Logging
Posted by: rajuarien - Sep-30-2019, 03:53 PM - Forum: General Coding Help - No Replies

I am a novice in python as new as week !

Wanted to use Python Logger

LoggingUtils.py

[python]
import logging

class LoggingUtils:..... More

Print this item

  autostart python scripts in background (Windows10)
Posted by: john36 - Sep-30-2019, 03:21 PM - Forum: General Coding Help - Replies (4)

Hi,
I have problem with autostart python scripts in Windows10:

I made BAT file and put it to autostart folder,
BAT file contens:

[color=#1ABC9..... More

Print this item

  Selecting first and last row in python
Posted by: sudhirkaukuntla - Sep-30-2019, 02:39 PM - Forum: Data Science - Replies (2)

Hi All,

Im trying to compare first and last value in pandas dataframe. My requirement is
if first value of column(id) group by city = last value ..... More

Print this item

  Beautifulsoup table question
Posted by: tantony - Sep-30-2019, 01:17 PM - Forum: Web Scraping & Web Development - Replies (5)

I'm able to get the data from the HTML table, but how would I get only the data I need? For example, how would I read only '10 or more sm (16+ km)'? ..... More

Print this item

  Prime numbers
Posted by: janoshz - Sep-30-2019, 12:32 PM - Forum: Homework - Replies (4)

Hello,

I have a slight problem with my prime number checking machine :D It does not print out the number 2 it should and does falsely recognize 9 a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My regex function is not ... 2 hours ago Moltar1997 Pedroski55 General Codin...
  silent deployment Python ... Yesterday, 11:51 Bummibaer Larz60+ News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 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...
Most views
  The best Prog... 579350
  Tutorial Requ... 512292
  Web Scraping ... 442236
  Newbie with P... 386326
  New Users Int... 380124
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+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
nicos18 Yesterday
Moltar1997 Yesterday
arthurlouiss Yesterday
LewisByday Yesterday
Bummibaer Yesterday

User Panel Messages

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