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,640
» Latest member: SDS
» Forum threads: 37,392
» Forum posts: 169,928

Full Statistics

Online Users
There are currently 384 online users.
» 0 Member(s) | 378 Guest(s)
Google, Bing, Apple, Yandex, Baidu

Latest Threads
Cucumber installation
Forum: General Coding Help
Last Post: SDS
1 hour ago
» Replies: 0
» Views: 13
if else statements
Forum: General Coding Help
Last Post: LinkAiris
1 hour ago
» Replies: 7
» Views: 3,772
Win or Loss Prediction
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 1
» Views: 61
watchdog on_modified
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 3
» Views: 157
how to edited Tkinter Top...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 5
» Views: 111
Volume label
Forum: Bar
Last Post: DPaul
8 hours ago
» Replies: 3
» Views: 121
Python Project Structure ...
Forum: General Coding Help
Last Post: b19wh33l5
11 hours ago
» Replies: 0
» Views: 72
What software to use?
Forum: General Coding Help
Last Post: mojobadshah
Yesterday, 09:28 AM
» Replies: 3
» Views: 706
Using xml.parsers.expat I...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 07:36 AM
» Replies: 3
» Views: 106
How to Randomly Print a Q...
Forum: General Coding Help
Last Post: Bronjer
Yesterday, 05:47 AM
» Replies: 13
» Views: 803

 
  [nltk] Relations Extractor
Posted by: constantin01 - Jun-27-2019, 07:35 PM - Forum: Data Science - Replies (3)

Hello

I use nltk.sem.relextract to extract relations in text. I have a problem.

What I do:

1. Tools:

[python]
import nltk
import re
fr..... More

Print this item

  Could anyone help me get the jaccard distance between my dataframes please? :)
Posted by: a_real_phoenix - Jun-27-2019, 05:58 PM - Forum: Data Science - No Replies

Hi there, I'm doing a piece of homework and I'm almost done, but the last part has me pretty stumped. I have four files to work with, and I have to ge..... More

Print this item

  Importing -
Posted by: sumncguy - Jun-27-2019, 05:52 PM - Forum: General Coding Help - Replies (2)

Im not sure that I will be able to get this question answered. I am trying to pick apart a home group module they are using at work and I have run int..... More

Print this item

  python cache for small integer
Posted by: Uchikago - Jun-27-2019, 04:30 PM - Forum: General Coding Help - Replies (1)

I know there is a cache to hold for small integers [-5,256] but when i try to get reference count for a big number like:
[python]>>> import sys
>>>..... More

Print this item

  Collecting Output from Pexpect
Posted by: gw1500se - Jun-27-2019, 04:20 PM - Forum: General Coding Help - Replies (3)

I'm using pexpect to provide login information for a long running command. That part is working. However, I then want to display the output from that ..... More

Print this item

  Filling an Excel file
Posted by: starter_student - Jun-27-2019, 02:50 PM - Forum: General Coding Help - Replies (3)

I have an Excel file ... name, description, scope (column scope is fast empty)
and I want to assign a "code" (0, 1, 2 and 3) in each row of the scope..... More

Print this item

  Escape sequences display in python
Posted by: Uchikago - Jun-27-2019, 02:49 PM - Forum: General Coding Help - Replies (1)

Can you guys explain why both \n and \b are escape sequences but why \n displays as '\n' but \b displays as '\x08'
[python]>>> '\n'
'\n'
>>> '\b'
'\x0..... More

Print this item

  Correlation of Incidents using time difference
Posted by: Rajhesh - Jun-27-2019, 02:36 PM - Forum: General Coding Help - Replies (1)

Hi All,

I'm a newbee in Python. Mostly I need to handle files. Lets say, I have a data dump which has records of Incidents for many nodes. A si..... More

Print this item

  help with simple LOGIN code
Posted by: pedrosa06 - Jun-27-2019, 01:45 PM - Forum: General Coding Help - Replies (3)

[b][i][/b][/i]


Hello, the code is the following:
[python]
# -*- coding: latin-1 -*-

def login():
user_incorreto = False..... More

Print this item

  Python start from a specific string line and write?
Posted by: searching1 - Jun-27-2019, 01:04 PM - Forum: General Coding Help - Replies (1)

I want to match a specific string and once match start writing the next line after after the matched string.

from output save in x variable I want ..... More

Print this item

  pandas library tricks
Posted by: metulburr - Jun-27-2019, 01:00 PM - Forum: Web Scraping & Web Development - Replies (7)

I have obviously never used the pandas library

Based on this answ..... More

Print this item

  Changing Data Types
Posted by: BallisticSwami - Jun-27-2019, 11:59 AM - Forum: General Coding Help - Replies (2)

I am writing a program to change the given data type.
Here is my code:
[python]a = input("Type the data which you would like to convert: ")
dtype = in..... More

Print this item

  Managing variables accross a multiple module GUI
Posted by: Oolongtea - Jun-27-2019, 10:47 AM - Forum: GUI - Replies (18)

I would like to know what are the best practices to manage variables in a complex application (ie multiple windows/menus/forms etc). I am relatively n..... More

Print this item

  table from wikipedia
Posted by: flow50 - Jun-27-2019, 10:31 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi,
I’m a newbie in programming and web scraping.

I got this assignment:

[quote]wikipedia web site: ..... More

Print this item

  capture logs on specific port
Posted by: anna - Jun-27-2019, 08:08 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have one application, sending logs on udp 25038 port towards my server. Is there any way to capture those logs and store in DB. Which mod..... More

Print this item

  Require scroll bars horizontal and vertical throughout the window
Posted by: tejgandhi - Jun-27-2019, 06:39 AM - Forum: GUI - Replies (2)

Hello All,

When I try to create scroll bars,horizontal and vertical utilizing
grid I get them for particular row and particular column I wanted sc..... More

Print this item

  Import Python Modules
Posted by: zowhair - Jun-27-2019, 05:53 AM - Forum: General Coding Help - Replies (4)

I am working to make a pyhton web framework, I make a package and installed that, and the main directory is in
venv/lib/python3.6/site-packages/[b]m..... More

Print this item

  Removing window borders
Posted by: DT2000 - Jun-27-2019, 01:44 AM - Forum: GUI - Replies (1)

Is there a way to have a borderless window in tkinter but keep the title bar? If overrideredirect(1)' is used it removes all including the title bar. ..... More

Print this item

  Lost in choosing how to make an graphic interface
Posted by: TheGuyUnknown - Jun-27-2019, 01:06 AM - Forum: News and Discussions - Replies (3)

Hello everybody, as a novice in python coding (i've been on C++ for the past few years), i would like to create a program that can simulate a trajecto..... More

Print this item

  Unable to identify Tuple index error
Posted by: appmkl - Jun-26-2019, 09:30 PM - Forum: Data Science - Replies (4)

Hello !
I've been wanting to create a DCGAN following this tutorial.
I've got the whole thing up and running on GCP, with my own image dataset (tryi..... More

Print this item

  Where to find Russian Django developers?
Posted by: mikedeveloper - Jun-26-2019, 08:20 PM - Forum: Jobs - Replies (2)

I am a React developer seeking Django developer to help with a project.
I do not need full-time work but enough to keep them busy.

Where can I fin..... More

Print this item

  subprocess and tty input
Posted by: gw1500se - Jun-26-2019, 07:25 PM - Forum: General Coding Help - Replies (2)

I'm writing a script that launches a process via Popen that reads a password from the tty rather than stdin. Is there a way to send that string? There..... More

Print this item

  Have two class instances affect one another
Posted by: The_Zookinator - Jun-26-2019, 05:57 PM - Forum: General Coding Help - Replies (3)

Hey everybody,

newbe here. I'm trying out classes and I don't know how to get the desired results:

[python]
class name():
def __init__(sel..... More

Print this item

  to_numpy() works in jupyter notebook, but not in python script
Posted by: bluefrog - Jun-26-2019, 05:54 PM - Forum: Data Science - Replies (7)

Hi

I am unsure why the following works in a jupyter notebook, but not in a python script that I am run from the Linux command line:

[python]
#!..... More

Print this item

  machine learning error (using jupyter)
Posted by: calonia - Jun-26-2019, 04:30 PM - Forum: General Coding Help - Replies (1)

i was trying to play around with machine learning and make prediction on this data set using jupyter:

https://github.com/dpkravi/DecisionTreeClassi..... More

Print this item

  Study guides
Posted by: Mark87 - Jun-26-2019, 04:13 PM - Forum: News and Discussions - No Replies

Hi, everybody!
I used to work with Magento for a long time, mostly developing modules and working at stores support [color=#E74C3C][LINK REMOVED][/co..... More

Print this item

  This constructor takes no arguments
Posted by: Friend - Jun-26-2019, 02:47 PM - Forum: General Coding Help - Replies (2)

Hi all,

i am just learning about classes. This a very simplified version of the example i was checking in a book

[python]
class Person:
de..... More

Print this item

  “main thread is not in main loop” in Tkinter
Posted by: Long_r - Jun-26-2019, 02:26 PM - Forum: GUI - Replies (1)

Greetings
I have paths of two GIF files in a list.
After input (name of the planet) it just shows looped GIF in tkinter.
When you enter 'ok' as a s..... More

Print this item

  plugin:xxx.py hasfailed to load
Posted by: 1204eray - Jun-26-2019, 02:22 PM - Forum: General Coding Help - Replies (1)

I write this code but ı cant enject ı got ".py has failed to load" error

Can anyone tell me where I do mistake

[python]from phBot import *
import p..... More

Print this item

  Only first letter in the cell of the file.
Posted by: rturus - Jun-26-2019, 01:32 PM - Forum: General Coding Help - Replies (7)

[python] b=b+1
for a in range(0,b):
writefile = open("data.csv",'a')
writefile.write(str(nam..... More

Print this item

  thinker button gui place next to each other
Posted by: jacklee26 - Jun-26-2019, 01:09 PM - Forum: GUI - Replies (9)

HI ,
do anyone knows how to place clear button next to ping button.
Right now it display ping and clear is not place together.
if i put pack(side"..... More

Print this item

  Finding the correct Python framework with cmake
Posted by: kavyasahu - Jun-26-2019, 09:59 AM - Forum: Data Science - No Replies

I am using the macports version of python on a Snow Leopard computer, and using cmake to build a cross-platform extension to it. I search for the pyth..... More

Print this item

  Audio and servo at the same time
Posted by: cgreenwell - Jun-26-2019, 09:16 AM - Forum: General Coding Help - Replies (4)

I'm using a Raspberry Pi3 with a servo hat and a speaker hat. I am getting audio just fine as well as servos are working fine, but can't do both at th..... More

Print this item

  Load JSON file data into mongodb using pymongo
Posted by: klllmmm - Jun-26-2019, 04:30 AM - Forum: General Coding Help - Replies (1)

I want to load JSON data into MongoDB using pymongo library.

I found that JSON data can be directly load using mongoimport using the command prompt..... More


Attached Files

.json   example_2.json (Size: 947 bytes / Downloads: 500)
Print this item

  Getting Around in OS X
Posted by: soupking - Jun-26-2019, 01:52 AM - Forum: General Coding Help - Replies (4)

Hi everybody,

I know this is a real general question, but I'm using the docs and not really getting anywhere.

I'm trying to use Python as a SSH..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Cucumber installation 1 hour ago SDS SDS General Codin...
  if else statements 1 hour ago remy LinkAiris General Codin...
  Win or Loss Prediction 4 hours ago ksasi2k3 deanhystad General Codin...
  watchdog on_modified 5 hours ago CAD79 deanhystad General Codin...
  how to edited Tkinter Top... 6 hours ago kucingkembar deanhystad General Codin...
  Volume label 8 hours ago DPaul DPaul Bar
  Python Project Structure ... 11 hours ago b19wh33l5 b19wh33l5 General Codin...
  What software to use? Yesterday, 09:28 pickledrick mojobadshah General Codin...
  Using xml.parsers.expat I... Yesterday, 07:36 Pedroski55 Pedroski55 General Codin...
  How to Randomly Print a Q... Yesterday, 05:47 BillKochman Bronjer General Codin...
  FutureWarning: The behavi... Yesterday, 01:42 sawtooth500 sawtooth500 General Codin...
Most views
  The best Prog... 410763
  Web Scraping ... 301867
  Tutorial Requ... 291870
  Newbie with P... 250238
  Thread remain... 232308
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+ 11871
buran 8090
snippsat 7086
deanhystad 6215
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
SDS Yesterday
Hacker Yesterday
b19wh33l5 Yesterday
Niharika Yesterday
matheos Yesterday

User Panel Messages

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