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,237
» Latest member: alexmaarley8855
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 26 Guest(s)
Google, Bing

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
11 hours ago
» Replies: 3
» Views: 82
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 94
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 68
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 101
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,048
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,364
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,554
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 184
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,195
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,442

 
  adding the customize dataset to BERT
Posted by: alicenguyen - Jul-04-2022, 08:59 AM - Forum: General Coding Help - Replies (2)

I want to summarize our training documents by using BERT model.
I tried with the code below but the result looks not the best.
So, I want to add the..... More

Print this item

  Rounding
Posted by: DPaul - Jul-04-2022, 06:42 AM - Forum: Bar - Replies (4)

I have developed an app, which does lengthy, but not very complicated calculations.
The main thing is that it produces end results, rounded numbers t..... More

Print this item

  Can you help me with this code please
Posted by: SuperNinja3I3 - Jul-04-2022, 04:48 AM - Forum: Homework - Replies (2)

[python]# Import statements
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.m..... More

Print this item

  Error in Using INPUT statement
Posted by: gunwaba - Jul-03-2022, 07:50 PM - Forum: General Coding Help - Replies (1)

Hello all.

I am using Python 3.9.12 in Spyder 5.1.5 environment. I tried to execute the input statement in a very simple way:

[python]Name = i..... More

Print this item

  File not found error
Posted by: saisankalpj - Jul-03-2022, 09:30 AM - Forum: General Coding Help - Replies (10)

I am using pysftp module to connect to sftp server.After establishing the connection,I am trying to upload a file from my local to sftp server.For thi..... More

Print this item

Question How to Write a function with Pandas?
Posted by: SuperNinja3I3 - Jul-03-2022, 04:39 AM - Forum: Homework - Replies (4)

Write a function that takes the start and end of a range returns a Pandas series object containing numbers within that range. In case the user does no..... More

Print this item

  how to reverse a list and store in another list in python
Posted by: SuperNinja3I3 - Jul-02-2022, 03:41 PM - Forum: Homework - Replies (6)

I want to reverse a list but want to store it in another list...

reverse the elements of the ‘myList’ and store that in ‘reversedList’

Print this item

Question how to write a function that accepts a 1D array as a parameter in Python
Posted by: SuperNinja3I3 - Jul-02-2022, 12:46 PM - Forum: Data Science - Replies (1)

5. Given a 1 D Numpy Array. Write a function that accepts this array as parameters. The method

should return a dictionary with 'mean' and 'std_dev'..... More

Print this item

  modifying PYTHONPATH during a script
Posted by: Skaperen - Jul-02-2022, 04:39 AM - Forum: News and Discussions - Replies (6)

i want to add a directory (folder) to the list of directories to search for modules so that it affects the script that is making the change. i prefer..... More

Print this item

  Retrieve variable from function
Posted by: labgoggles - Jul-01-2022, 07:02 PM - Forum: General Coding Help - Replies (2)

Hi, I'm totally new to python and I'm using a code under the 'Example code' section from this wikipedia article:
https://en.wikipedia.org/wiki/Random..... More

Print this item

  How to move multiple columns to initial position
Posted by: SriRajesh - Jul-01-2022, 02:17 PM - Forum: General Coding Help - Replies (4)

Hi,
I have below df and want to move multiple columns to initial position.

df:
[python]wat tey step low tool tech category subj name
1 2 3 ..... More

Print this item

Question Cant understand the question...
Posted by: SuperNinja3I3 - Jul-01-2022, 01:46 PM - Forum: Data Science - Replies (3)

3. Given a 2 D Array of N X M Dimension, Write a function that accepts this array as well as two
numbers N and M. The method should return the top-le..... More

Print this item

  Division by zero and value of argument
Posted by: Lawu - Jul-01-2022, 12:49 PM - Forum: General Coding Help - Replies (5)

I am new with python also new with this forum.
I have searched this topic but didn't give me better solutions (may be my search skill is poor)

[py..... More

Print this item

  Membership test for an element in a list that is a dict value for a particular key?
Posted by: Mark17 - Jul-01-2022, 12:38 PM - Forum: General Coding Help - Replies (2)

Suppose:

a = {3:['apple', 'pear'], 5:['grape', 'cherry']}
How can I do a membership test to see if 'cherry' is in the list ..... More

Print this item

  Error while running code on VSC
Posted by: maiya - Jul-01-2022, 12:05 PM - Forum: General Coding Help - Replies (4)

I have installed python3, however while running below code snippet in the VS Code terminal getting an error as system could not find the path.
[pyth..... More

Print this item

  TypeError: float() argument must be a string or a number, not 'list'
Posted by: Anldra12 - Jul-01-2022, 07:54 AM - Forum: General Coding Help - Replies (2)


  1. I am working on project Shamir secret sharing scheme get the error
[color=#E74C3C]TypeError: float() argument must be a..... More

Print this item

  python-docx- change lowercase to bold, italic
Posted by: Tmagpy - Jul-01-2022, 07:25 AM - Forum: General Coding Help - No Replies

In my docx file there are pieces of text i have to process such as making words italic, bold or underlined.

Example

[quote] input: In the future..... More

Print this item

  jinja endfor error
Posted by: 3lnyn0 - Jun-30-2022, 07:49 PM - Forum: General Coding Help - No Replies

Hi! I'm getting ther next error for the below code [error]jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'endfor'. Jinja was looking f..... More

Print this item

  Second window with buttons and plot
Posted by: frohr - Jun-30-2022, 06:24 PM - Forum: General Coding Help - Replies (1)

Hey, I have main window and if I click on button then second window will open. In second window I will have buttons and text fields on the left and on..... More

Print this item

  Key Binding scope
Posted by: angus1964 - Jun-30-2022, 06:17 PM - Forum: GUI - Replies (1)

If I bind the return key to a function in my main window can I open a new toplevel window, then bind the return key to a different function, and retur..... More

Print this item

  Basic Pandas, obtaining a value from column and row
Posted by: JamesOzone - Jun-30-2022, 04:52 PM - Forum: General Coding Help - Replies (2)

Hi all,

Getting back into coding, I have a data file (named AC) using PANDAS which reads an XLSX file. I want to retrieve the value that correspond..... More


Attached Files

Thumbnail(s)
   
Print this item

  Sprite image rotation problem
Posted by: XavierPlatinum - Jun-30-2022, 04:47 PM - Forum: Game Development - Replies (4)

I'm likely just blind, but I can't find the reason my pygame sprite image (which is just a pygame.Surface) is a solid, filled square that grows and sh..... More

Print this item

  cannot get code to work
Posted by: Led_Zeppelin - Jun-30-2022, 01:11 PM - Forum: General Coding Help - Replies (10)

I have spent a day is trying to get the following code to work.

[code]
df2 = pd.DataFrame(df, columns = ['sensor_00', 'sensor_01', 'sensor_02', '..... More

Print this item

Photo PySimpleGUI Adjust SCREEN size
Posted by: Alcrkai - Jun-30-2022, 11:58 AM - Forum: General Coding Help - No Replies

When executing my second layout, it starts with the window off the screen, not being able to close it by the button and cutting the elements displayed..... More


Attached Files

Thumbnail(s)
   
Print this item

  Portability in Python and Java
Posted by: ankitdixit - Jun-30-2022, 07:37 AM - Forum: News and Discussions - Replies (1)

Hello All, I am working on a freelance project which is based on python and java both and I am good at java. I want to know which programming language..... More

Print this item

  [Solved]Help getting variable from Function in PyQt
Posted by: Extra - Jun-29-2022, 11:31 PM - Forum: GUI - Replies (6)

Hello,

I have a combobox (Called: DatabaseComboBox) that holds a list of databases.

When a database is selected I have a function that gets it'..... More

Print this item

  Problem with scraping the Title from a web page
Posted by: Wagner822 - Jun-29-2022, 11:28 PM - Forum: General Coding Help - No Replies

Hi. I'm using python 3.10 with Windows.

I have a script like this


[python] src_url = get_url_by_pagenumber(page)
res = requests.get(src_url..... More

Print this item

  Need help formatting dataframe data before saving to CSV
Posted by: cubangt - Jun-29-2022, 08:27 PM - Forum: General Coding Help - Replies (16)

I am trying to parse and save my IG messages for stat purposes.

I have the following code that works and saves to a csv file, but when i open the ..... More

Print this item

Big Grin Exception of the day
Posted by: DeaD_EyE - Jun-29-2022, 06:05 PM - Forum: Bar - Replies (2)

[error]
[{key: row for key, row in zip(("port", "state", "resolution"), parsed)} for parsed in [[data[0], f"{data[1]} {data[2]}", data[3]] if "primar..... More

Print this item

  What kind of list is this?
Posted by: jesse68 - Jun-29-2022, 04:25 PM - Forum: General Coding Help - Replies (2)

Hi, one more question for the day.

This is a list - my_List = ["one", "two","three"]
This is a dictionary - my_Dict = dict({1: 'Geeks', 2: 'F..... More

Print this item

Question Finding string in list item
Posted by: jesse68 - Jun-29-2022, 02:46 PM - Forum: General Coding Help - Replies (8)

Hello.

This is odd but I'm sure there is a perfectly good explanation.

Why is "501" and "502" evaluated as true for each item in the list?

[p..... More

Print this item

  Python List Issue
Posted by: Aggie64 - Jun-29-2022, 02:15 PM - Forum: General Coding Help - Replies (5)

1. create a list named All_Items_List
2. set All_Items_List_Copy = All_Items_List
3. create Subset_list which has one less item than All_Items_Lis..... More

Print this item

  Help with basic weight converter
Posted by: PythonSquizzel - Jun-29-2022, 02:11 PM - Forum: General Coding Help - Replies (3)

Ok so I'm brand new to coding and following a YouTube video for learning python, one of the exercises is to make a simple weight conversion program. I..... More

Print this item

  GUI Style
Posted by: Oshadha - Jun-29-2022, 02:03 PM - Forum: GUI - Replies (3)

Tkinter is very easy to learn and master. But it keeps looking old (Windows 7ish). Am I missing a part where it looks new? If not what other modules ..... More

Print this item

  Data Science
Posted by: Oshadha - Jun-29-2022, 01:35 PM - Forum: Data Science - Replies (2)

Python is famous for data science. But what is Data Science. I never understood the concept. Is it finding data and presenting it?
I consider myself ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 11 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578682
  Tutorial Requ... 509110
  Web Scraping ... 441840
  Newbie with P... 385791
  New Users Int... 375048
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexmaarley8855 Yesterday
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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