« first day (720 days earlier)      last day (1468 days later) » 

12:02 PM
0
Q: Efficient way of coding a comparison function

Mpizos DimitrisI got a function that has as input 2 strings,computes the string similarity of all the combinations and give back and output the highest similarity. For example you are and are you will have 1 as similarity value. The functions are the following: import itertools from difflib import SequenceMatc...

 
12:55 PM
0
Q: Geocoding and Reverse in python using Geopy

Vipin RaiI had done this program that takes an input from STDIN and processes it to check if it is a Latitude/longitude combo or a place's name. Then it uses geocoding and returns an address corresponding to the latitude longitude or returns a latitude and longitude if the input is an address. I am using ...

 
 
2 hours later…
3:18 PM
0
Q: Filter column and row according to regex in header

morgantaschukI'm writing a script that can grep the rows and columns from a text file that match a regex. I have an implementation but I'm looking to make it more elegant. This is my input.tsv: a b c d a 2 9 6 1 b 6 4 7 0 c 3 ...

 
 
1 hour later…
4:38 PM
0
Q: How should I make this binning code more pythonic and general?

user97479This code basically calculates a few metrics based on numerators and denominators and then it bins the data into quintiles. This is a common operation that I perform for various data sets. My issue is that I always have to rename the metrics and columns. I have a feeling that I could create func...

 
 
2 hours later…
6:10 PM
0
Q: Code to select a random student from a class list

Hurricane996This is code to select a random student from a class list, stored in a .ss file. Here is my code. from Tkinter import Tk,Button,StringVar,Entry,Label import random, tkFileDialog, tkMessageBox root= Tk() root.wm_title("Random Student Selector") current=StringVar() kids=[] addKidName=Entry(roo...

0
Q: Accessing all variables declared in a function without duplicating code

PydermanGiven: PICKLE_FILENAME_INSTRUCTION_IDS = 'pickled_instruction_ids.txt' def compare_instruction_id_list_with_baseline(baselineidspicklefile): baseline_ids = load_pickled_ids(baselineidspicklefile) current_main_url_content = get_page_content(main_url_test) root = lh.fromstring(current...

 
6:51 PM
Typo Changing what a pointer points to? - Reggie78 - 2016-02-12 18:44:39Z
 
7:02 PM
1 message moved from SO Close Vote Reviewers
 
 
2 hours later…
8:34 PM
I don't think we have any other idiots here
 
1 message moved from C#
 
 
2 hours later…
10:45 PM
0
Q: Python Implementation - Conway's Game of Life

Ishaan SaxenaThis is my implementation of Conway's Game of Life in Python. Now since I am a novice coder, naturally I have some key doubts: The usage of idioms and code redundancies - Are there any small fragments of the program which can be better written? The usage of sys.argv - Is my usage of system argu...

 

« first day (720 days earlier)      last day (1468 days later) »