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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,584

Full Statistics

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

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
41 minutes ago
» Replies: 4
» Views: 126
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
Yesterday, 03:59 PM
» Replies: 4
» Views: 138
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 84
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,549
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 235
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,058
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 471
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,105
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,184
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 862

 
  Bulk insert pandas df data into SQLite dB ?
Posted by: Johnse - Sep-05-2019, 12:35 AM - Forum: News and Discussions - Replies (1)

Hello,

Is there a way to insert BULK data from pandas data frame
into SQLite database that is in memory ? Thanks

Print this item

  IndexError: index out of bounds
Posted by: LeoGER - Sep-05-2019, 12:27 AM - Forum: Data Science - Replies (3)

Hi all, first post to the forum!

I'm getting an index error(shown after script) when running the following code, I would be very grateful if someon..... More

Print this item

  does anyon want to write an untabify command?
Posted by: Skaperen - Sep-04-2019, 11:36 PM - Forum: News and Discussions - Replies (10)

i know Linux has a command called "expand" intended to remove tabs. but it doesn't work right. when you run it with a file name, it just outputs the..... More

Print this item

  Syntax "for" loop, "and", ".isupper()", ".islower", ".isnum()"
Posted by: dcardonaa - Sep-04-2019, 10:11 PM - Forum: Homework - Replies (4)

Hello! I'm trying to run any code but my Kernel needs to be re-started all the time (I have Windows, is that related?), besides I have syntax problems..... More

Print this item

  Paramiko SCPServer Example
Posted by: mickib1 - Sep-04-2019, 08:22 PM - Forum: Networking - No Replies

Hi
I would like to implement a scp server using paramiko,
Can anyone post an example
Below is the SSH server I am using is there a way to teak the ..... More

Print this item

  ImportError: cannot import name 'gui' from 'appJar'
Posted by: CabbageMan - Sep-04-2019, 06:18 PM - Forum: General Coding Help - Replies (1)

I want to use appJar for some simple GUI, but the import function doesn't work. Does anyone know how I can fix it?
The code is taken from "http://app..... More

Print this item

  What's wrong with this if line?
Posted by: Mark17 - Sep-04-2019, 06:08 PM - Forum: Homework - Replies (4)

This gives me the desired output:
[python]
targetfile = input(' Enter a file name: ')
#senders = [] --I don't think I need to create a list, do I?..... More

Print this item

  Need help to extract particular string
Posted by: lokesh - Sep-04-2019, 05:35 PM - Forum: General Coding Help - Replies (3)

Hi,

I want to extract particular string in a file.suppose file contains the following string.

INFO 2019-02-19 20:59:56,178 - Process Start ..... More

Print this item

  Deleting files not present in CSV
Posted by: spw2515 - Sep-04-2019, 05:10 PM - Forum: General Coding Help - Replies (1)

Hi, I am looking for a bit of help with a python method to delete all files 'Not the folders or subfolders' just the files which are listed in a CSV f..... More

Print this item

  Unexpected output: if statement
Posted by: CabbageMan - Sep-04-2019, 04:04 PM - Forum: General Coding Help - Replies (1)

I am pretty new to python, and I am trying to make a encrypter/decrypter, but my "if statement" is not working. Every time i run the program, it runs ..... More

Print this item

  could not find a version that satisfies the requirement geopy
Posted by: beginner1 - Sep-04-2019, 03:29 PM - Forum: General Coding Help - Replies (2)

Hi,

Trying to use geopy and getting message could not find a version that satisfies the requirement geopy
when type pip install geopy

and mess..... More

Print this item

  Applying operation to a pandas multi index dataframe subgroup
Posted by: Nuovoq - Sep-04-2019, 01:56 PM - Forum: Data Science - Replies (1)

Hi all, first time poster, newish to Python.

I have a multi-index pandas dataframe (named dfForex) containing daily forex data for multiple currenc..... More

Print this item

  My class has name error message
Posted by: 357mag - Sep-04-2019, 01:29 PM - Forum: General Coding Help - Replies (3)

Okay this is the first time I've created a Python class and I'm running into a problem. The debugger says NameError: Instrument is not defined.

I d..... More

Print this item

  update dict as per range of values
Posted by: anna - Sep-04-2019, 01:13 PM - Forum: General Coding Help - Replies (7)

I am parsing, ZyXEL DSLAM configuration file, support required to dict as per range of data.

[python]from ciscoconfparse import CiscoConfParse
fro..... More

Print this item

  Posting html values to views/models in Django
Posted by: Malt - Sep-04-2019, 10:54 AM - Forum: Web Scraping & Web Development - Replies (1)

This is very basic and I'm new to web development with Django. My goal is to create new user with username, password and e-mail id and I'm having role..... More

Print this item

  Copying XML elements from one file to another
Posted by: kirat - Sep-04-2019, 10:52 AM - Forum: General Coding Help - Replies (2)

I've now been getting used to the etree option and I want to take specific XML Tags and Texts from one file to another.
My code looks like this:

..... More

Print this item

  Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with
Posted by: lsepolis123 - Sep-04-2019, 08:48 AM - Forum: Game Development - Replies (9)

Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with joystick device...?

https://www.pygame.org/docs/ref/jo..... More

Print this item

  Can copyright be applied python scripts?
Posted by: tim777 - Sep-04-2019, 08:45 AM - Forum: News and Discussions - Replies (3)

Can copyright be applied to python scripts?

Print this item

  Dropping a column from pandas dataframe
Posted by: marco_ita - Sep-04-2019, 07:30 AM - Forum: Data Science - Replies (6)

[output]
Date Price Open High Low Vol. Change % (Vol., Price, Open, High, Low)
0 Sep 03, 2019 1,789.84 1,771.45 1,801.11 1,767.61 3.55 ..... More

Print this item

  Getting help on developing a code
Posted by: Masoudk96 - Sep-04-2019, 07:21 AM - Forum: General Coding Help - Replies (1)

hello everyone

i', not a professional programmer, actually my field of study is different from these stuff. btw i'm trying to learn python because ..... More

Print this item

  i love f-strings
Posted by: Skaperen - Sep-04-2019, 03:21 AM - Forum: Bar - Replies (5)

i love f-strings. i'm using them all over the place, now. most of my error messages are f-strings with expanded detail about the error.

Print this item

  Is it possible to have an apostrophe inside { } in an f-string?
Posted by: Exsul - Sep-04-2019, 12:38 AM - Forum: General Coding Help - Replies (6)

from random import choice as rc

string = f"never say you {rc(['can', 'can\'t'])} do something"

print(string)
[output]File "C:/..... More

Print this item

  Homework Help
Posted by: HoustonM11 - Sep-03-2019, 06:10 PM - Forum: Homework - Replies (7)

Hey guys, I'd appreciate some help on a homework question. It's very entry level and not too hard but due to my lack of any knowledge using python and..... More

Print this item

  restarting game code
Posted by: zyada7med - Sep-03-2019, 06:07 PM - Forum: Homework - Replies (5)

hi guys this is my code and i tried to make a game restart function but i couldn't can you help me please
[output]"""This program plays a game of Ro..... More

Print this item

  API-Call, Json und und Pygal
Posted by: starter_student - Sep-03-2019, 03:41 PM - Forum: Web Scraping & Web Development - Replies (6)

Moin!
hiermit entwickle ich eine jkleine WebApp mit Flask und da ich eine API verwenden möchte für eine Visualisierung von Wetter-Daten (Name, temp_m..... More

Print this item

  UnboundLocalError: local variable ' ' referenced before assignment
Posted by: d3fi - Sep-03-2019, 03:07 PM - Forum: General Coding Help - Replies (10)

I just cant find the problem here. I have searched for it. but that did not solve my problem.

[python]
def fentanyl(): # This one Works
v..... More

Print this item

  How to sharing object between multiple process from main process using Pipe
Posted by: Subrata - Sep-03-2019, 02:14 PM - Forum: General Coding Help - Replies (1)

I try to call multiprocessing to act my process faster.
At the moment I face some problems sharing some data with many processes from main process.
..... More

Print this item

  SQL statements with python pandas
Posted by: Johnse - Sep-03-2019, 01:56 PM - Forum: Data Science - No Replies

Hello,

Is there a way to create SQL statements with
python pandas without installing any python packages ?

For example with pandasql

We ne..... More

Print this item

  Queue maxsize
Posted by: mr_byte31 - Sep-03-2019, 12:00 PM - Forum: General Coding Help - Replies (2)

I have a problem to control the queue threads that I run.
I want to run 50 threads ( min of two numbers where 50 will be always the minimum) and when..... More

Print this item

  fcntl module not found - Windows
Posted by: kaushiikasuresh - Sep-03-2019, 11:14 AM - Forum: General Coding Help - No Replies

Using python 3.7.4 on Windows 10. Unable to install fcntl module and found that it is not written for Windows. Is there any solution to use fcntl modu..... More

Print this item

  How to find the pygame example files?
Posted by: Piethon - Sep-03-2019, 09:00 AM - Forum: Game Development - Replies (12)

Hello.

Pygame has examples. On their website, stands this:

To get the files, run this code in the python interpreter:

[python]
>>> import p..... More

Print this item

  Speech Recognition with timestamps
Posted by: DeanAseraf1 - Sep-03-2019, 04:58 AM - Forum: General Coding Help - Replies (3)

Hi
this is my code:

[python]
import speech_recognition as sr
r = sr.Recognizer()
with sr.AudioFile("PATH") as source:
audio = r.record(source)

t..... More

Print this item

  Numpy arrays and compatability with Fortran arrays
Posted by: merrittr - Sep-03-2019, 03:54 AM - Forum: Data Science - No Replies

I am trying to write some python code that will utilize a f2py fortran code


the Fortran arrays are defined like
#REAL TSFSROT(NLAT,NMOS,4)
..... More

Print this item

  Python Turtle 3D capabilities
Posted by: jotape1960 - Sep-03-2019, 02:02 AM - Forum: News and Discussions - Replies (3)

I'm so new in Python and I decided to start with some known area: The Turtle Graphics.

So, I want to know if the Python Turtle Graphics has 3D obje..... More

Print this item

  Python Script for parsing dictionary values from yaml file
Posted by: pawan6782 - Sep-02-2019, 11:32 PM - Forum: General Coding Help - Replies (3)

Requires Help ,using Python for accessing dictionary values from yaml file

Also , the yaml file will be passed as argument as INV file command line ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 41 minutes ago bimosora Pedroski55 General Codin...
  print does not open conso... Yesterday, 15:59 Tycho_2025 Axel_Erfurt General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577495
  Tutorial Requ... 501481
  Web Scraping ... 441112
  Newbie with P... 385164
  New Users Int... 369979
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday
DataAnalytics021 Yesterday

User Panel Messages

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