Ad

Saturday, March 18, 2017

Pandas Sample Code - Udacity Machine Learning


  • .groupby()
  • .count()
  • pandas.DataFrame.count
  • .sum()
  • df[df["class"]==1].count()["value"]
  • countOfColumn = myDataFrame[conditionColumn["myCondition"]=="myCondValue"].count()["conditionColumn"] get row count by column condition and value
  • pandas.Series.map
  • pandas.DataFrame.count
  • df[(df['A']>0) & (df['B']>0) & (df['C']>0)]
  • pandas.DataFrame.sum
  • df.groupby('a').count()
  • df.first()

No comments:

Post a Comment

Check Tensorflow Version If Installation is Successful - Google Machine ...

Quickly check Tensorflow version number and successful installation.