« first day (788 days earlier)      last day (1400 days later) » 

6:13 AM
0
Q: Making the Levenshtein distance code cleaner

AmirHosseinI was writing an Levenshtein distance in python and I found my code really ugly Have you any idea to make it more elegant import unittest import enum def seq_dist(first, second): Direction = enum.Enum('Direction', 'gap_first gap_second match finish') def find_dist(): dist_table...

 
 
1 hour later…
7:15 AM
poonam ki
1 message moved from talkies
 
abe haddddd
kuch bolne nahi milega
 
7:50 AM
teri bhabhi
 
1 message moved from talkies
 
 
2 hours later…
9:36 AM
0
Q: What is modern way of doing this in python?

user1685095My code right now look like this @contextmanager def smtp_connection(host, user=None, passwd=None, timeout=5): conn = None # smell here try: conn = SMTP(host=host, timeout=timeout) conn.ehlo_or_helo_if_needed() if user and passwd: conn.login(user=u...

 
 
7 hours later…
4:26 PM
0
Q: PySpark Dataframes program to process huge amounts of server data from a parquet file

flybonzaiI'm new to spark and dataframes and I'm looking for feedback on what bad or inefficient processes might be in my code so I can improve and learn. My program reads in a parquet file that contains server log data about requests made to our website. I think it is pretty self-explanatory, the only ...

 

« first day (788 days earlier)      last day (1400 days later) »