Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,718
» Latest member: Safinazsalem
» Forum threads: 37,435
» Forum posts: 170,089

Full Statistics

Online Users
There are currently 380 online users.
» 1 Member(s) | 371 Guest(s)
Facebook, Bing, Apple, Yandex, Baidu, Google, Mojeek, Axel_Erfurt

Latest Threads
How to generate double ar...
Forum: Homework
Last Post: Safinazsalem
10 minutes ago
» Replies: 0
» Views: 6
How to make a double loop...
Forum: Data Science
Last Post: Safinazsalem
3 hours ago
» Replies: 0
» Views: 47
How to make a double loop...
Forum: Data Science
Last Post: Safinazsalem
3 hours ago
» Replies: 0
» Views: 53
Calculating Average with ...
Forum: General Coding Help
Last Post: paul18fr
5 hours ago
» Replies: 4
» Views: 255
Keep getting "SyntaxError...
Forum: General Coding Help
Last Post: Larz60+
5 hours ago
» Replies: 1
» Views: 104
converting an int to byte...
Forum: News and Discussions
Last Post: oilumiun12
8 hours ago
» Replies: 4
» Views: 1,184
DF.groupby(col).min works...
Forum: General Coding Help
Last Post: roryelila68
10 hours ago
» Replies: 4
» Views: 565
Multi-Threaded Camera Fee...
Forum: General Coding Help
Last Post: Khajababa69
Yesterday, 09:44 PM
» Replies: 0
» Views: 101
[HELP] The Application of...
Forum: Data Science
Last Post: MistyhV1
Yesterday, 02:22 PM
» Replies: 0
» Views: 72
Visualizing musician char...
Forum: Data Science
Last Post: Pedroski55
Yesterday, 05:50 AM
» Replies: 3
» Views: 215

 
  Dictionary trouble
Posted by: Involute - Oct-08-2019, 12:01 AM - Forum: General Coding Help - Replies (3)

In the following code (which is executable as-is), I've created a dictionary called switcherx{} in the switcher() function. This function also calls ..... More

Print this item

  Voynich search engine in python using dashes & dot totals to find Italian words
Posted by: Pleiades - Oct-07-2019, 11:27 PM - Forum: General Coding Help - Replies (3)

What I'm doing? I'm generating word labels in Italian and narratives from the Voynich Manuscript using a special cipher. The cipher contains abstrac..... More

Print this item

  Pyautogui script runs fine if split into two parts together it does not
Posted by: Bmart6969 - Oct-07-2019, 09:10 PM - Forum: General Coding Help - Replies (1)

Making a small bot to automate daily activities in a game the script runs fine and fully gets into the game. i Made another script to check resource l..... More

Print this item

  Web Scraping Error : Not getting expected result
Posted by: adminravi - Oct-07-2019, 08:36 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi,

I am a beginner in Python programming. Of late, I have started learning web scraping after completing python programming course from Udemy. I w..... More

Print this item

  coloring cells in a row with openpyxl
Posted by: curranjohn46 - Oct-07-2019, 08:09 PM - Forum: General Coding Help - Replies (3)

Hi All,

I am struggling with something and looking everywhere for a clue. The scenario is this: I am searching column 2 of a spreadsheet for a val..... More

Print this item

  New Programmer / Program
Posted by: ericvrocha - Oct-07-2019, 07:59 PM - Forum: General Coding Help - Replies (5)

Hello everyone!
Hope everybody is having a great day.

Well, I am a new programmer and python user, I am trying to apply my knowledge that I got so..... More

Print this item

  A function for correctly using "a/an" before a word
Posted by: Exsul1 - Oct-07-2019, 05:51 PM - Forum: General Coding Help - Replies (2)

I want to make a function that, when passed a string containing a single word, returns that word preceded by the indefinite article "a" or "an," depen..... More

Print this item

  out and back to loop
Posted by: vlk - Oct-07-2019, 05:36 PM - Forum: General Coding Help - Replies (2)

Hi everyone, I don't understand how out from a loop while. I have a test loop ho test the contacts GPIO from my raspberry then the contact go to close..... More

Print this item

  Invalid Syntax error
Posted by: mustfirst - Oct-07-2019, 05:21 PM - Forum: General Coding Help - Replies (9)

When I run the following I'm getting an error message. Anyone knows how to correct it?


[python]>>> import requests
>>> from bs4 import Beautifu..... More

Print this item

  split strip issues 'NonType'
Posted by: casacafe - Oct-07-2019, 04:47 PM - Forum: General Coding Help - Replies (8)

hello,

I am extremely new to python so bare with me. I am using a product that requires the use of python for custom functionality.

I have an ..... More

Print this item

  New to Python - What are the basic concepts, uses, and fundamentals?
Posted by: JohnWithGCSRecruitment - Oct-07-2019, 04:29 PM - Forum: News and Discussions - Replies (4)

I am trying to get a general understanding of Python. Can anyone give me a crash course of the basics? Not necessarily the specifics, but mainly the c..... More

Print this item

  Dataframe replace
Posted by: ilcaa72 - Oct-07-2019, 03:19 PM - Forum: Data Science - No Replies

i have a dataframe that has rows like. i want to get rid of various markings like =, |, ()

i wrote this but it returns the same value without remov..... More

Print this item

  Embedding return in a print statement
Posted by: Tapster - Oct-07-2019, 01:59 PM - Forum: General Coding Help - Replies (3)

First, I hope I used the format/rules correctly.
I did a search for "embedding return in a print statement" before posting. I don't have the terminol..... More

Print this item

  drop row index , how to show new df
Posted by: ilcaa72 - Oct-07-2019, 01:40 PM - Forum: General Coding Help - No Replies

hi, i have data i downloaded from the internet so it is not in a structured table, there are rows i want to delete. using a regex, i am able to identi..... More

Print this item

  Grab and Parse a chunkc of text
Posted by: sumncguy - Oct-07-2019, 01:08 PM - Forum: General Coding Help - Replies (4)

I mentioned a few times before that I am trying to learn/get better at python.

I am unable to load non standard modules.
I am using either pytho..... More

Print this item

  How to add data to the categorical index of dataframe as data arrives?
Posted by: AlekseyPython - Oct-07-2019, 12:54 PM - Forum: Data Science - Replies (1)

Python 3.7.3, pandas 0.25.1

I need to collect statistics within the clients, so I created a df in which for each client I group the necessary..... More

Print this item

  How to use while true/while loop on python
Posted by: christing - Oct-07-2019, 10:11 AM - Forum: General Coding Help - Replies (4)

May i ask how i can use while true / while loop to write the code.

i = "APPLE"
while True:
if i == "APPLE":
print(i)


i get Syntax Error fo..... More

Print this item

  performance
Posted by: kerzol81 - Oct-07-2019, 09:27 AM - Forum: General Coding Help - Replies (1)

Hi,

Do you know any good diagnostic tool to compare 2 implementations?

First:
[python]
def converterA(qdate, qtime):
"""
:param qdat..... More

Print this item

  list approach due nested order
Posted by: 3Pinter - Oct-07-2019, 08:44 AM - Forum: General Coding Help - Replies (6)

Horrible thread name, but let me try and explain it.

I put lists (with 2 (always) values) in a main-list and I want to cleanup the duplicates in th..... More

Print this item

  Explain - binary number
Posted by: RavCOder - Oct-07-2019, 08:32 AM - Forum: General Coding Help - Replies (2)

Hi,
I ask if there is someone could be explain this code that I found and why it was used this solution,because I didn't find nothing on Internet , o..... More

Print this item

  Add a column in a dataframe from another dataframe
Posted by: Bilsix - Oct-07-2019, 07:15 AM - Forum: General Coding Help - Replies (2)

Hi there,

I'm a newbie in Python and I need your help.
I tried to search my answer in the forum but I think I don't have the good keywords... It's..... More

Print this item

  A hangman game.
Posted by: mcmxl22 - Oct-07-2019, 06:53 AM - Forum: Code sharing - Replies (1)

A hangman type game I wrote. It's fully functional but I'm still trying to improve on it.
It does require a list of words in a .txt file. I used [url=..... More

Print this item

  Replace Items in List.
Posted by: mcmxl22 - Oct-07-2019, 04:27 AM - Forum: General Coding Help - Replies (3)

I am trying to replace items in a list based on the index. I don't understand why I'm getting the 'index out of range' error.
This is what I have:
[..... More

Print this item

  VS-Code - Maximizing Horizontal Space For Editor
Posted by: adt - Oct-07-2019, 04:09 AM - Forum: News and Discussions - Replies (8)

Even when VS-Code editor is in Zen mode, there are wide blank columns on either side of screen that are not available as part of coding area.

Has a..... More

Print this item

  How to read a text file into a list or an array
Posted by: musouka - Oct-07-2019, 02:59 AM - Forum: General Coding Help - Replies (2)

Hi,

I have 2 txt files as following:
1st - '[4,6,3,5]'
2nd - '[3,6],[6,2,7]'

I wonder if there is anyway to read it into a list or an array ..... More

Print this item

  can't assign to literal error in pycharm
Posted by: ryder5227 - Oct-07-2019, 02:16 AM - Forum: General Coding Help - Replies (2)

[python]class Flee(Action):
def __init__(self, method: object, name: object, hotkey: object, kwargs: object) -> object:
"""

:..... More

Print this item

  Sprite on mouse-button hold
Posted by: Clunk_Head - Oct-07-2019, 02:12 AM - Forum: Game Development - Replies (3)

I'm working with pygame 1.9.6
I am trying to make a program that displays a translucent sprite only when the left mouse-button is held down.
This s..... More

Print this item

  Accessing Entry with get Function
Posted by: nexgenskydiver - Oct-06-2019, 10:22 PM - Forum: GUI - Replies (1)

Hello,
New to Python. Below is my code for a multipage GUI using tkinter. I have classes set up for my Frames and more through them with Buttons...... More

Print this item

  XPATH element does not change its value
Posted by: Martinelli - Oct-06-2019, 07:02 PM - Forum: General Coding Help - No Replies

Hi, all!

I am developing a robot that get into in a Website, do the logon and make somethings on that.

I put it in a loop using the for c..... More

Print this item

  Create a dictionary from a list
Posted by: klllmmm - Oct-06-2019, 04:26 PM - Forum: General Coding Help - Replies (3)

I have some data in a dictionary but its values are in a list. I want to create a dictionary from these values.

[python]data = {'data':[{'Info':100..... More

Print this item

  Change start date of stock web page
Posted by: petrov94 - Oct-06-2019, 03:15 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi I'm new with Python and I want to know how to interact with the web Page with BeautifulSoup and change the startdate of the financial data in this ..... More

Print this item

  Class for Vector
Posted by: no_named_nobody - Oct-06-2019, 02:16 PM - Forum: Homework - Replies (4)

[font=Arial, Helvetica, sans-serif]Hello! Angel
I am new in programming in python. I got a homework to create class MyVector,
- constructor wi..... More

Print this item

  How to use pool.map effectively?
Posted by: AlekseyPython - Oct-06-2019, 11:11 AM - Forum: General Coding Help - Replies (10)

Python 3.7.3

[python]if self.multiprocessing:
quantity_process = multiprocessing.cpu_count()
else:
quantity_process = 1

pool = mult..... More

Print this item

  Input while interation in a list
Posted by: doug2019 - Oct-06-2019, 07:57 AM - Forum: General Coding Help - Replies (6)

Hi! How do I code an while iteration and input its values ​​in a list? Example:
[python]count=0
while (count<5):
print(count)
count+1..... More

Print this item

  Problem Solving
Posted by: PistAchiYo - Oct-06-2019, 03:34 AM - Forum: News and Discussions - Replies (6)

What do you think about before writing code for anything? What's your process?I need some tips :)

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to generate double ar... 10 minutes ago Safinazsalem Safinazsalem Homework
  How to make a double loop... 3 hours ago Safinazsalem Safinazsalem Data Science
  How to make a double loop... 3 hours ago Safinazsalem Safinazsalem Data Science
  Calculating Average with ... 5 hours ago mikasa paul18fr General Codin...
  Keep getting "SyntaxError... 5 hours ago Pedroski55 Larz60+ General Codin...
  converting an int to byte... 8 hours ago Skaperen oilumiun12 News and Disc...
  DF.groupby(col).min works... 10 hours ago samgardner5 roryelila68 General Codin...
  Multi-Threaded Camera Fee... Yesterday, 21:44 Khajababa69 Khajababa69 General Codin...
  [HELP] The Application of... Yesterday, 14:22 MistyhV1 MistyhV1 Data Science
  Visualizing musician char... Yesterday, 05:50 Drone4four Pedroski55 Data Science
  how to: explicitly select... Yesterday, 03:01 sawtooth500 sawtooth500 General Codin...
Most views
  The best Prog... 433316
  Web Scraping ... 320105
  Tutorial Requ... 309565
  Newbie with P... 262324
  Thread remain... 247021
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11876
buran 8090
snippsat 7096
deanhystad 6232
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Safinazsalem Today
hohla Today
vinutabellur Today
oilumiun12 Today
Khajababa69 Yesterday

User Panel Messages

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