Skip to content

Instantly share code, notes, and snippets.

@kjam
Last active October 17, 2016 19:14
Show Gist options
  • Save kjam/b54eaa58e34119180269987070ff6163 to your computer and use it in GitHub Desktop.
Save kjam/b54eaa58e34119180269987070ff6163 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"overtime_series = pd.to_numeric(latest_salaries['OvertimePay'], errors='coerce')"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"count 38119.000000\n",
"mean 5401.993737\n",
"std 11769.656257\n",
"min 0.000000\n",
"25% NaN\n",
"50% NaN\n",
"75% NaN\n",
"max 173547.730000\n",
"Name: OvertimePay, dtype: float64"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"overtime_series.describe()"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"(15361,)"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"overtime_series[overtime_series > 1000].shape"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment