Found a directory of software companies in Lebanon. I'll laboriously go through each of them hoping there is an opening for a python developer job. lebanonexportdirectory.com/eβ¦
Here's a list of startups that raised gazillions and failed this year; it might help you feel better about crypto shitcoinland. π
My favorite: EZhome - subscription-based lawn-care services (raised $20M @ $102M valuation). ππ
inc.com/business-insider/25-β¦
Does your project need BOTH Python and R?
1) Call R functions from Python with rpy2 and %R magic (bit.ly/2HinRGt)
OR
2) Call Python functions from R using reticulate package (bit.ly/2GIjtiS)
list.sort() and sorted() accept key argument to specify a function which returns what you would like your items sorted by:
mylst.sort(key = lambda x: x[-1])
sorted(mylst, key = lambda x: len(x))
#Pandas: If you know in advance which columns of your data youβd like to use, you can pass them to the usecols argument of pd.read_csv, pd.read_table, etc.
Call a function until a sentinel value is returned with iter()
lines = []
with open('file.txt') as fp:
for line in iter(fp.readline, ''):
lines.append(line.strip())
stackoverflow.com/questions/β¦#python
Unhappy with != inequality operator? FLUFL Uncle Barry will help! π
>>> from __future__ import barry_as_FLUFL
>>> 1 <> 2
True
Happy #Easter and the belated start of the month!
python.org/dev/peps/pep-0401β¦
One more way to combine a list of lists into a single set:
>>> lol = [['a', 'b', 'c'], ['b', 'c', 'd'], ['d', 'e']]
>>> set().union(*lol)
set(['a', 'c', 'b', 'e', 'd'])
#pythontip from @raymondh