...
Full Bio
Use Machine Learning To Teach Robots to Navigate by CMU & Facebook Artificial Intelligence Research Team
222 days ago
Top 10 Artificial Intelligence & Data Science Master's Courses for 2020
223 days ago
Is Data Science Dead? Long Live Business Science
251 days ago
New Way to write code is about to Change: Join the Revolution
252 days ago
Google Go Language Future, Programming Language Programmer Will Get Best Paid Jobs
573 days ago
Top 10 Best Countries for Software Engineers to Work & High in-Demand Programming Languages
723366 views
Highest Paying Programming Language, Skills: Here Are The Top Earners
669147 views
Which Programming Languages in Demand & Earn The Highest Salaries?
474279 views
Top 5 Programming Languages Mostly Used By Facebook Programmers To Developed All Product
461226 views
World's Most Popular 5 Hardest Programming Language
391524 views
Swiftapply - Automatically efficient pandas apply operations

from swifter import swiftapply
myDF['outCol'] = swiftapply(myDF['inCol'], anyfunction)
def bikes_proportion(x, max_x): return x * 1.0 / max_x data['bike_prop'] = swiftapply(data['bikes_available'], bikes_proportion, max_x=np.max(data['bikes_available']))
def convert_to_human(datetime): return datetime.weekday_name + ', the ' + str(datetime.day) + 'th day of ' + datetime.strftime("%B") + ', ' + str(datetime.year) data['humanreadable_date'] = swiftapply(data['date'], convert_to_human)
# Parallel processing b/c if-else statement makes it non-vectorized def gt_5_bikes(x): if x > 5: return True else: return False # computes in 13.8s data['gt_5_bikes'] = swiftapply(data['bikes_available'], gt_5_bikes) # Vectorized version def gt_5_bikes_vectorized(x): return np.where(x > 5, True, False) # computes in 231ms data['gt_5_bikes_vec'] = swiftapply(data['bikes_available'], gt_5_bikes_vectorized)

df['date'].apply(pd.to_datetime) # very slow pd.to_datetime(df['date']) # vectorized - very fast swiftapply(df['date'], pd.to_datetime) # also vectorized - very fast


