Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yehjames/8a646bdebe9187f37d9790c4efc7fce9 to your computer and use it in GitHub Desktop.
Save yehjames/8a646bdebe9187f37d9790c4efc7fce9 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jwlin
Copy link

jwlin commented Nov 28, 2017

In [25]: 應該為 df['C'] = df['C'].fillna(df['C'].mode()[0])
Out[25]: df['C'][1] 的值應為 3.0 (眾數)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment