Your byte size news and commentary from Silicon Valley the land of startup vanities, coding, learn-to-code and unicorn billionaire stories.

Ad

Sunday, December 17, 2017

Pandas Vectorized Methods - Intro to Data Science

This Udacity data vectorization video shows that Dataframe.apply(Numpy.mean) can be used to calculate column mean. Pandas allow easy vectorization of data charts. DataFrame['col_name'].map(lambda x: x==0) check each data cell in the column if it is equal to zero. DataFrame.applymap(lambda x: x ==0) will check each data cell in the entire dataframe.

Subscribe to our blog. We help discover the best tutorials on technology and programming subscribe@uniqtech.co we are beginner and bootcamp friendly.

Vector math is not only optimized, speed wise, it's also clean and elegant.