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.

No comments:

Post a Comment

Reinforcement Learning Q Learning

Explore <s, a> ---> s' reads: move from current state s to s' via action a.   Through the action a reward  is received, it ...