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,670
» Latest member: PranayShah
» Forum threads: 37,408
» Forum posts: 169,994

Full Statistics

Online Users
There are currently 388 online users.
» 2 Member(s) | 379 Guest(s)
Facebook, Bing, Google, Baidu, Yandex, Larz60+, snippsat

Latest Threads
intering int number
Forum: General Coding Help
Last Post: akbarza
35 minutes ago
» Replies: 0
» Views: 12
Program that calculates b...
Forum: Data Science
Last Post: xzenon
58 minutes ago
» Replies: 2
» Views: 94
API design an choice
Forum: News and Discussions
Last Post: Gribouillis
1 hour ago
» Replies: 3
» Views: 126
How to solve this error "...
Forum: Data Science
Last Post: PranayShah
5 hours ago
» Replies: 0
» Views: 40
¿Cómo se fija el presupue...
Forum: Bar
Last Post: Taylor13Sylas
10 hours ago
» Replies: 1
» Views: 73
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
10 hours ago
» Replies: 8
» Views: 332
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
Yesterday, 06:10 PM
» Replies: 1
» Views: 159
negative memory usage
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 08:43 AM
» Replies: 1
» Views: 101
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: WicardBohnam
Yesterday, 01:25 AM
» Replies: 9
» Views: 256
Why am I getting this err...
Forum: General Coding Help
Last Post: Pedroski55
Apr-26-2024, 12:31 PM
» Replies: 4
» Views: 162

 
  What is error: "TypeError: 'module' object is not callable"
Posted by: phutran - Apr-18-2020, 08:37 AM - Forum: Networking - Replies (3)

[python]import getpass
import sys
import telnetlib
HOST = input("Enter device IP: ")
user = input("Enter your telnet user: ")
password = getpass...... More

Print this item

  Delete all contents of a file from the fifth line?
Posted by: PythonNPC - Apr-18-2020, 08:18 AM - Forum: General Coding Help - Replies (1)

Hello,

I want to delete all the contents of the file from under the fifth line.

Is this doable?
I don't want to just print the file on the cons..... More

Print this item

  average aggregate function
Posted by: winya - Apr-18-2020, 06:46 AM - Forum: Data Science - Replies (3)

How to find average aggregate function for two classifier using method in python?

Print this item

  Passing arguments into function, tkinter
Posted by: nanok66 - Apr-18-2020, 06:21 AM - Forum: GUI - Replies (3)

Hey folks,
I've got a very limited understanding of how to pass information through a function. I have a tkinter page with multiple buttons. (Jus..... More

Print this item

  How to assess elapsed time to execute a .exe file or opening a desktop application?
Posted by: Sudershan - Apr-18-2020, 01:59 AM - Forum: General Coding Help - Replies (2)

I used following code but not got any success. It is not providing the elapsed time to open the pdf file. Please help with suitable code. I am using p..... More

Print this item

  i want to create my own file-like object
Posted by: Skaperen - Apr-17-2020, 11:47 PM - Forum: News and Discussions - No Replies

i want to create my own file-like object that behaves by renaming a file to be written to append a unique temporary string to the created name and on ..... More

Print this item

  tkinter How to pass label fiilename to another module?
Posted by: johnjh - Apr-17-2020, 11:34 PM - Forum: GUI - No Replies

This is work fine if I pass entry but I don't understand how to do it in label filename.
this is same example to pass entry to another function https..... More

Print this item

  For loops in python
Posted by: Boinbo - Apr-17-2020, 11:27 PM - Forum: General Coding Help - Replies (3)

Hey guys! So, I am a new person to these forums, and I am learning python right now. Currently, I'm learning about for loops, but I'm not super sure o..... More

Print this item

  fft calculation from csv file
Posted by: mohammedtaha - Apr-17-2020, 10:59 PM - Forum: Data Science - Replies (4)

hello i want to calculate fft of a sinusoid that i get from a csv file, i tried the fft function, but the specter that i found is not the one that i e..... More

Print this item

  create function let_to_num()
Posted by: al_Czervik - Apr-17-2020, 10:19 PM - Forum: General Coding Help - Replies (2)

In my assignment I have to convert a number to letter using a list. I've been able to do this except I'm stuck on the bonus question. When the input i..... More

Print this item

  urlopen error
Posted by: newmoon - Apr-17-2020, 09:29 PM - Forum: Networking - Replies (2)

Hi, Python Web Scrapers,

I wrote a simple code to use urlopen function, but it didn't work.
I don't know what's wrong with my code.

Python 3.8..... More

Print this item

  min() function in iterable index
Posted by: OokaydO - Apr-17-2020, 09:24 PM - Forum: General Coding Help - Replies (4)

Hi,
For a choice of 4 letters (a, b, c, d) for example, a sequence of letters is displayed, arranged as follows:
[output]aaaaaaa
abbbbba
abcccba
..... More

Print this item

  Building SSH tunnel?
Posted by: searching1 - Apr-17-2020, 08:39 PM - Forum: Networking - No Replies

Hi Everyone,

Would like to know if anyone here has a sample of code related to ssh tunnel using pexpect and default libraries only?

Curr..... More

Print this item

  Tkinter - I need to read file excel from GUI app to script file
Posted by: johnjh - Apr-17-2020, 08:04 PM - Forum: GUI - No Replies

I have an app by Tkinter Controll.py this is my code :


[python]
import os
from tkinter import *
from tkinter import..... More

Print this item

  python ast if-elif confusion
Posted by: holyghost - Apr-17-2020, 07:26 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm working with the python ast and have a question regarding difference between how different else conditions are handled. I'm finding that a..... More

Print this item

  installation problem
Posted by: mkgrtn - Apr-17-2020, 07:15 PM - Forum: General Coding Help - Replies (1)

Hello
I was wondering if I can get some help with the following:
I have been using Python 36-32 with Sublime Text 3 for about a year with no..... More

Print this item

  Tkinter - I have problem after import varaible or function from aGUI to script
Posted by: johnjh - Apr-17-2020, 05:20 PM - Forum: GUI - Replies (2)

I have GUI Tkinter code as aGUI.py :

[python]import os
from tkinter import *
from tkinter import ttk

root = Tk()..... More

Print this item

  Pandas is not getting installed.
Posted by: yellareddy - Apr-17-2020, 05:17 PM - Forum: Data Science - Replies (3)

I'm getting below error while installing pandas. please help to fix this issue.

ERROR: Command errored out with exit status 1:
command: 'c:\pro..... More

Print this item

  Pandas - Dynamic column aggregation based on another column
Posted by: theroadbacktonature - Apr-17-2020, 04:54 PM - Forum: Data Science - No Replies

An algorithm runs daily and generates a file. The file can have dynamic columns in each run.

First run : country,date,exchange_rate,sale_amt,profit..... More

Print this item

  Get values from a split column
Posted by: Pythonito - Apr-17-2020, 04:44 PM - Forum: General Coding Help - Replies (3)

I split a dataframe column..

df['new_col'] = df['col'].str.split('aa', expand=False)

Now how do I get the individual list values in 'new_col'?

Print this item

  Polyfit Error
Posted by: Tobes28 - Apr-17-2020, 03:13 PM - Forum: Data Science - Replies (3)

Hi everyone,

I am writing a bit of code whose purpose, essentially, is to take a data set (density varying with 10 different temperatures) from a C..... More

Print this item

  What is the meaning of mutable data type?
Posted by: qliu - Apr-17-2020, 02:51 PM - Forum: General Coding Help - Replies (3)

Hello everyone, I have one simple question which I can not figure out by myself. Would you please share your opinion and help me walking through this?..... More

Print this item

  Internationalization of applications ?
Posted by: JohnnyCoffee - Apr-17-2020, 02:30 PM - Forum: General Coding Help - Replies (1)

I would like to develop a web application that adapts to the language of the country in which it is used, can someone give me a how-to, do I need to d..... More

Print this item

  Regex excluding
Posted by: ClassicalSoul - Apr-17-2020, 02:13 PM - Forum: General Coding Help - Replies (2)

How could I use regex to match everything not in between hyphens? E.g. re.search(r"<>", "- i don't want this - I do want this")

Edit: This particu..... More

Print this item

  import scalalib package doesn't work
Posted by: manu_brighter - Apr-17-2020, 12:03 PM - Forum: General Coding Help - Replies (2)

Hi Guys

I would like to use the function sharedvars. I've seen many examples of people using it like that: https://python.hotexamples.com/examples/..... More

Print this item

  JSON to CSV
Posted by: baluchen - Apr-17-2020, 11:06 AM - Forum: General Coding Help - Replies (3)

Dear all,

I just started learning Python and got the requirement to format json data into csv. I tried with Pandas and it seems it doesn't work wit..... More

Print this item

  Tic Tac Toe
Posted by: pyzyx3qwerty - Apr-17-2020, 10:44 AM - Forum: Code sharing - Replies (1)

So, I was working on this for a few days, and i was finally able to make a simple tic tac toe game. It's pretty fun and I personally enjoyed making it..... More

Print this item

  Always lowercase entry in tkinter
Posted by: ReturnName - Apr-17-2020, 10:37 AM - Forum: GUI - Replies (8)

Hi, I'd like to have my entry always in lowercase and with only letters allowed. This is the code I've come up with:

[python]def lowercase_letter_e..... More

Print this item

  Copying from windows Clipboard
Posted by: VincentAdey - Apr-17-2020, 08:50 AM - Forum: Data Science - Replies (3)

hello everybody,
I am new to python and currently working on data anylisis wiith pandas. This morning I copied a companies information from the web a..... More

Print this item

  Senior Python Developer, 6h/day, remote
Posted by: agatagasiorowska - Apr-17-2020, 08:09 AM - Forum: Jobs - Replies (1)

Senior Python Developer, 6h/day, remote
Salary in PLN (B2B): 155-195 PLN / h (so 18600-23400 PLN assuming 120h/Month (20 days * 6h workday)
or
Salary..... More

Print this item

  How do you take terminal inputs w/o halting running code?
Posted by: Bhoot - Apr-17-2020, 07:04 AM - Forum: General Coding Help - Replies (3)

Hi,

I have an application which runs indefinitely (a while True loop until a keyboard interrupt stops the program). Now I want to be able to give s..... More

Print this item

  Wireless sensor network TDMA
Posted by: cyborg_8274 - Apr-17-2020, 06:22 AM - Forum: General Coding Help - Replies (1)

Any idea on how I could simulate TDMA (time division multiple access) on a list of nodes that send messages to a single node at given time duration.
..... More

Print this item

  [PyTorch] no CUDA-capable device is detected
Posted by: constantin01 - Apr-17-2020, 05:50 AM - Forum: Data Science - No Replies

I use PyTorch for machine learning. I am doing all this in Google Colab.

[python]
(best_val_loss,
best_sentence_level_model) = train_eval_loop(s..... More

Print this item

  pygame why init() & not __init__()?
Posted by: ryfoa6 - Apr-17-2020, 04:24 AM - Forum: Game Development - Replies (1)

Why does Pygame use init() to initialize all imported modules instead of __init__()?
What's the difference between init() and __init__()?

Print this item

  output while using return instead of print
Posted by: muza - Apr-17-2020, 03:09 AM - Forum: General Coding Help - Replies (2)

when i create a function with return value, it outputs with single quotes example:
[python]def show(string = "my output"):
return string
show()..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  intering int number 35 minutes ago akbarza akbarza General Codin...
  Program that calculates b... 58 minutes ago xzenon xzenon Data Science
  API design an choice 1 hour ago Skaperen Gribouillis News and Disc...
  How to solve this error "... 5 hours ago PranayShah PranayShah Data Science
  ¿Cómo se fija el presupue... 10 hours ago Davis5Noah Taylor13Sylas Bar
  using mutable in function... 10 hours ago akbarza snippsat General Codin...
  Problem Converting Tradin... Yesterday, 18:10 kralxs kralxs General Codin...
  negative memory usage Yesterday, 08:43 akbarza Gribouillis General Codin...
  ModulNotFoundError matplo... Yesterday, 01:25 WicardBohnam WicardBohnam General Codin...
  Why am I getting this err... 04-26, 12:31 Pedroski55 Pedroski55 General Codin...
  Discord - Webcrapping fro... 04-26, 12:27 Tolska Tolska Web Scraping ...
Most views
  The best Prog... 417213
  Web Scraping ... 307458
  Tutorial Requ... 296447
  Newbie with P... 253860
  Thread remain... 236487
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+ 11873
buran 8090
snippsat 7093
deanhystad 6222
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
PranayShah Today
SatoshiNGenesis Yesterday
Taylor13Sylas Yesterday
Davis5Noah Yesterday
a001 Yesterday

User Panel Messages

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