Skip to content

Commit 153f628

Browse files
committed
additional snippets, mostly seaborne
1 parent ce40107 commit 153f628

14 files changed

+2924
-880
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"metadata": {
3+
"name": "",
4+
"signature": "sha256:b196a018603767e2a7c0ff1799067c6d01a7e60a6e16052205e5a4319f4a27c8"
5+
},
6+
"nbformat": 3,
7+
"nbformat_minor": 0,
8+
"worksheets": [
9+
{
10+
"cells": [
11+
{
12+
"cell_type": "code",
13+
"collapsed": false,
14+
"input": [
15+
"import pandas as pd\n",
16+
"\n",
17+
"df = pd.DataFrame()\n",
18+
"\n",
19+
"df['x'] = [1,2,3]\n",
20+
"df['y'] = [3,4,5]"
21+
],
22+
"language": "python",
23+
"metadata": {},
24+
"outputs": [],
25+
"prompt_number": 87
26+
},
27+
{
28+
"cell_type": "code",
29+
"collapsed": false,
30+
"input": [
31+
"if all(df['x'] < df['y']):\n",
32+
" print('True')\n",
33+
"else:\n",
34+
" print('False')"
35+
],
36+
"language": "python",
37+
"metadata": {},
38+
"outputs": [
39+
{
40+
"output_type": "stream",
41+
"stream": "stdout",
42+
"text": [
43+
"True\n"
44+
]
45+
}
46+
],
47+
"prompt_number": 88
48+
},
49+
{
50+
"cell_type": "code",
51+
"collapsed": false,
52+
"input": [
53+
"if any(df['x'] < df['y']):\n",
54+
" print('True')\n",
55+
"else:\n",
56+
" print('False')"
57+
],
58+
"language": "python",
59+
"metadata": {},
60+
"outputs": [
61+
{
62+
"output_type": "stream",
63+
"stream": "stdout",
64+
"text": [
65+
"False\n"
66+
]
67+
}
68+
],
69+
"prompt_number": 90
70+
}
71+
],
72+
"metadata": {}
73+
}
74+
]
75+
}

.ipynb_checkpoints/pandas_with_seaborne-checkpoint.ipynb

-427
This file was deleted.

0 commit comments

Comments
 (0)