Skip to content

Commit 54a68d7

Browse files
author
vytas
committed
Added doc stubs
1 parent b0b3dd4 commit 54a68d7

File tree

3 files changed

+290
-0
lines changed

3 files changed

+290
-0
lines changed

doc/data/tips.csv

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
obs,totbill,tip,sex,smoker,day,time,size
2+
1,16.99, 1.01,F,No,Sun,Night,2
3+
2,10.34, 1.66,M,No,Sun,Night,3
4+
3,21.01, 3.50,M,No,Sun,Night,3
5+
4,23.68, 3.31,M,No,Sun,Night,2
6+
5,24.59, 3.61,F,No,Sun,Night,4
7+
6,25.29, 4.71,M,No,Sun,Night,4
8+
7, 8.77, 2.00,M,No,Sun,Night,2
9+
8,26.88, 3.12,M,No,Sun,Night,4
10+
9,15.04, 1.96,M,No,Sun,Night,2
11+
10,14.78, 3.23,M,No,Sun,Night,2
12+
11,10.27, 1.71,M,No,Sun,Night,2
13+
12,35.26, 5.00,F,No,Sun,Night,4
14+
13,15.42, 1.57,M,No,Sun,Night,2
15+
14,18.43, 3.00,M,No,Sun,Night,4
16+
15,14.83, 3.02,F,No,Sun,Night,2
17+
16,21.58, 3.92,M,No,Sun,Night,2
18+
17,10.33, 1.67,F,No,Sun,Night,3
19+
18,16.29, 3.71,M,No,Sun,Night,3
20+
19,16.97, 3.50,F,No,Sun,Night,3
21+
20,20.65, 3.35,M,No,Sat,Night,3
22+
21,17.92, 4.08,M,No,Sat,Night,2
23+
22,20.29, 2.75,F,No,Sat,Night,2
24+
23,15.77, 2.23,F,No,Sat,Night,2
25+
24,39.42, 7.58,M,No,Sat,Night,4
26+
25,19.82, 3.18,M,No,Sat,Night,2
27+
26,17.81, 2.34,M,No,Sat,Night,4
28+
27,13.37, 2.00,M,No,Sat,Night,2
29+
28,12.69, 2.00,M,No,Sat,Night,2
30+
29,21.70, 4.30,M,No,Sat,Night,2
31+
30,19.65, 3.00,F,No,Sat,Night,2
32+
31, 9.55, 1.45,M,No,Sat,Night,2
33+
32,18.35, 2.50,M,No,Sat,Night,4
34+
33,15.06, 3.00,F,No,Sat,Night,2
35+
34,20.69, 2.45,F,No,Sat,Night,4
36+
35,17.78, 3.27,M,No,Sat,Night,2
37+
36,24.06, 3.60,M,No,Sat,Night,3
38+
37,16.31, 2.00,M,No,Sat,Night,3
39+
38,16.93, 3.07,F,No,Sat,Night,3
40+
39,18.69, 2.31,M,No,Sat,Night,3
41+
40,31.27, 5.00,M,No,Sat,Night,3
42+
41,16.04, 2.24,M,No,Sat,Night,3
43+
42,17.46, 2.54,M,No,Sun,Night,2
44+
43,13.94, 3.06,M,No,Sun,Night,2
45+
44, 9.68, 1.32,M,No,Sun,Night,2
46+
45,30.40, 5.60,M,No,Sun,Night,4
47+
46,18.29, 3.00,M,No,Sun,Night,2
48+
47,22.23, 5.00,M,No,Sun,Night,2
49+
48,32.40, 6.00,M,No,Sun,Night,4
50+
49,28.55, 2.05,M,No,Sun,Night,3
51+
50,18.04, 3.00,M,No,Sun,Night,2
52+
51,12.54, 2.50,M,No,Sun,Night,2
53+
52,10.29, 2.60,F,No,Sun,Night,2
54+
53,34.81, 5.20,F,No,Sun,Night,4
55+
54, 9.94, 1.56,M,No,Sun,Night,2
56+
55,25.56, 4.34,M,No,Sun,Night,4
57+
56,19.49, 3.51,M,No,Sun,Night,2
58+
57,38.01, 3.00,M,Yes,Sat,Night,4
59+
58,26.41, 1.50,F,No,Sat,Night,2
60+
59,11.24, 1.76,M,Yes,Sat,Night,2
61+
60,48.27, 6.73,M,No,Sat,Night,4
62+
61,20.29, 3.21,M,Yes,Sat,Night,2
63+
62,13.81, 2.00,M,Yes,Sat,Night,2
64+
63,11.02, 1.98,M,Yes,Sat,Night,2
65+
64,18.29, 3.76,M,Yes,Sat,Night,4
66+
65,17.59, 2.64,M,No,Sat,Night,3
67+
66,20.08, 3.15,M,No,Sat,Night,3
68+
67,16.45, 2.47,F,No,Sat,Night,2
69+
68, 3.07, 1.00,F,Yes,Sat,Night,1
70+
69,20.23, 2.01,M,No,Sat,Night,2
71+
70,15.01, 2.09,M,Yes,Sat,Night,2
72+
71,12.02, 1.97,M,No,Sat,Night,2
73+
72,17.07, 3.00,F,No,Sat,Night,3
74+
73,26.86, 3.14,F,Yes,Sat,Night,2
75+
74,25.28, 5.00,F,Yes,Sat,Night,2
76+
75,14.73, 2.20,F,No,Sat,Night,2
77+
76,10.51, 1.25,M,No,Sat,Night,2
78+
77,17.92, 3.08,M,Yes,Sat,Night,2
79+
78,27.20, 4.00,M,No,Thu,Day,4
80+
79,22.76, 3.00,M,No,Thu,Day,2
81+
80,17.29, 2.71,M,No,Thu,Day,2
82+
81,19.44, 3.00,M,Yes,Thu,Day,2
83+
82,16.66, 3.40,M,No,Thu,Day,2
84+
83,10.07, 1.83,F,No,Thu,Day,1
85+
84,32.68, 5.00,M,Yes,Thu,Day,2
86+
85,15.98, 2.03,M,No,Thu,Day,2
87+
86,34.83, 5.17,F,No,Thu,Day,4
88+
87,13.03, 2.00,M,No,Thu,Day,2
89+
88,18.28, 4.00,M,No,Thu,Day,2
90+
89,24.71, 5.85,M,No,Thu,Day,2
91+
90,21.16, 3.00,M,No,Thu,Day,2
92+
91,28.97, 3.00,M,Yes,Fri,Night,2
93+
92,22.49, 3.50,M,No,Fri,Night,2
94+
93, 5.75, 1.00,F,Yes,Fri,Night,2
95+
94,16.32, 4.30,F,Yes,Fri,Night,2
96+
95,22.75, 3.25,F,No,Fri,Night,2
97+
96,40.17, 4.73,M,Yes,Fri,Night,4
98+
97,27.28, 4.00,M,Yes,Fri,Night,2
99+
98,12.03, 1.50,M,Yes,Fri,Night,2
100+
99,21.01, 3.00,M,Yes,Fri,Night,2
101+
100,12.46, 1.50,M,No,Fri,Night,2
102+
101,11.35, 2.50,F,Yes,Fri,Night,2
103+
102,15.38, 3.00,F,Yes,Fri,Night,2
104+
103,44.30, 2.50,F,Yes,Sat,Night,3
105+
104,22.42, 3.48,F,Yes,Sat,Night,2
106+
105,20.92, 4.08,F,No,Sat,Night,2
107+
106,15.36, 1.64,M,Yes,Sat,Night,2
108+
107,20.49, 4.06,M,Yes,Sat,Night,2
109+
108,25.21, 4.29,M,Yes,Sat,Night,2
110+
109,18.24, 3.76,M,No,Sat,Night,2
111+
110,14.31, 4.00,F,Yes,Sat,Night,2
112+
111,14.00, 3.00,M,No,Sat,Night,2
113+
112, 7.25, 1.00,F,No,Sat,Night,1
114+
113,38.07, 4.00,M,No,Sun,Night,3
115+
114,23.95, 2.55,M,No,Sun,Night,2
116+
115,25.71, 4.00,F,No,Sun,Night,3
117+
116,17.31, 3.50,F,No,Sun,Night,2
118+
117,29.93, 5.07,M,No,Sun,Night,4
119+
118,10.65, 1.50,F,No,Thu,Day,2
120+
119,12.43, 1.80,F,No,Thu,Day,2
121+
120,24.08, 2.92,F,No,Thu,Day,4
122+
121,11.69, 2.31,M,No,Thu,Day,2
123+
122,13.42, 1.68,F,No,Thu,Day,2
124+
123,14.26, 2.50,M,No,Thu,Day,2
125+
124,15.95, 2.00,M,No,Thu,Day,2
126+
125,12.48, 2.52,F,No,Thu,Day,2
127+
126,29.80, 4.20,F,No,Thu,Day,6
128+
127, 8.52, 1.48,M,No,Thu,Day,2
129+
128,14.52, 2.00,F,No,Thu,Day,2
130+
129,11.38, 2.00,F,No,Thu,Day,2
131+
130,22.82, 2.18,M,No,Thu,Day,3
132+
131,19.08, 1.50,M,No,Thu,Day,2
133+
132,20.27, 2.83,F,No,Thu,Day,2
134+
133,11.17, 1.50,F,No,Thu,Day,2
135+
134,12.26, 2.00,F,No,Thu,Day,2
136+
135,18.26, 3.25,F,No,Thu,Day,2
137+
136, 8.51, 1.25,F,No,Thu,Day,2
138+
137,10.33, 2.00,F,No,Thu,Day,2
139+
138,14.15, 2.00,F,No,Thu,Day,2
140+
139,16.00, 2.00,M,Yes,Thu,Day,2
141+
140,13.16, 2.75,F,No,Thu,Day,2
142+
141,17.47, 3.50,F,No,Thu,Day,2
143+
142,34.30, 6.70,M,No,Thu,Day,6
144+
143,41.19, 5.00,M,No,Thu,Day,5
145+
144,27.05, 5.00,F,No,Thu,Day,6
146+
145,16.43, 2.30,F,No,Thu,Day,2
147+
146, 8.35, 1.50,F,No,Thu,Day,2
148+
147,18.64, 1.36,F,No,Thu,Day,3
149+
148,11.87, 1.63,F,No,Thu,Day,2
150+
149, 9.78, 1.73,M,No,Thu,Day,2
151+
150, 7.51, 2.00,M,No,Thu,Day,2
152+
151,14.07, 2.50,M,No,Sun,Night,2
153+
152,13.13, 2.00,M,No,Sun,Night,2
154+
153,17.26, 2.74,M,No,Sun,Night,3
155+
154,24.55, 2.00,M,No,Sun,Night,4
156+
155,19.77, 2.00,M,No,Sun,Night,4
157+
156,29.85, 5.14,F,No,Sun,Night,5
158+
157,48.17, 5.00,M,No,Sun,Night,6
159+
158,25.00, 3.75,F,No,Sun,Night,4
160+
159,13.39, 2.61,F,No,Sun,Night,2
161+
160,16.49, 2.00,M,No,Sun,Night,4
162+
161,21.50, 3.50,M,No,Sun,Night,4
163+
162,12.66, 2.50,M,No,Sun,Night,2
164+
163,16.21, 2.00,F,No,Sun,Night,3
165+
164,13.81, 2.00,M,No,Sun,Night,2
166+
165,17.51, 3.00,F,Yes,Sun,Night,2
167+
166,24.52, 3.48,M,No,Sun,Night,3
168+
167,20.76, 2.24,M,No,Sun,Night,2
169+
168,31.71, 4.50,M,No,Sun,Night,4
170+
169,10.59, 1.61,F,Yes,Sat,Night,2
171+
170,10.63, 2.00,F,Yes,Sat,Night,2
172+
171,50.81,10.00,M,Yes,Sat,Night,3
173+
172,15.81, 3.16,M,Yes,Sat,Night,2
174+
173, 7.25, 5.15,M,Yes,Sun,Night,2
175+
174,31.85, 3.18,M,Yes,Sun,Night,2
176+
175,16.82, 4.00,M,Yes,Sun,Night,2
177+
176,32.90, 3.11,M,Yes,Sun,Night,2
178+
177,17.89, 2.00,M,Yes,Sun,Night,2
179+
178,14.48, 2.00,M,Yes,Sun,Night,2
180+
179, 9.60, 4.00,F,Yes,Sun,Night,2
181+
180,34.63, 3.55,M,Yes,Sun,Night,2
182+
181,34.65, 3.68,M,Yes,Sun,Night,4
183+
182,23.33, 5.65,M,Yes,Sun,Night,2
184+
183,45.35, 3.50,M,Yes,Sun,Night,3
185+
184,23.17, 6.50,M,Yes,Sun,Night,4
186+
185,40.55, 3.00,M,Yes,Sun,Night,2
187+
186,20.69, 5.00,M,No,Sun,Night,5
188+
187,20.90, 3.50,F,Yes,Sun,Night,3
189+
188,30.46, 2.00,M,Yes,Sun,Night,5
190+
189,18.15, 3.50,F,Yes,Sun,Night,3
191+
190,23.10, 4.00,M,Yes,Sun,Night,3
192+
191,15.69, 1.50,M,Yes,Sun,Night,2
193+
192,19.81, 4.19,F,Yes,Thu,Day,2
194+
193,28.44, 2.56,M,Yes,Thu,Day,2
195+
194,15.48, 2.02,M,Yes,Thu,Day,2
196+
195,16.58, 4.00,M,Yes,Thu,Day,2
197+
196, 7.56, 1.44,M,No,Thu,Day,2
198+
197,10.34, 2.00,M,Yes,Thu,Day,2
199+
198,43.11, 5.00,F,Yes,Thu,Day,4
200+
199,13.00, 2.00,F,Yes,Thu,Day,2
201+
200,13.51, 2.00,M,Yes,Thu,Day,2
202+
201,18.71, 4.00,M,Yes,Thu,Day,3
203+
202,12.74, 2.01,F,Yes,Thu,Day,2
204+
203,13.00, 2.00,F,Yes,Thu,Day,2
205+
204,16.40, 2.50,F,Yes,Thu,Day,2
206+
205,20.53, 4.00,M,Yes,Thu,Day,4
207+
206,16.47, 3.23,F,Yes,Thu,Day,3
208+
207,26.59, 3.41,M,Yes,Sat,Night,3
209+
208,38.73, 3.00,M,Yes,Sat,Night,4
210+
209,24.27, 2.03,M,Yes,Sat,Night,2
211+
210,12.76, 2.23,F,Yes,Sat,Night,2
212+
211,30.06, 2.00,M,Yes,Sat,Night,3
213+
212,25.89, 5.16,M,Yes,Sat,Night,4
214+
213,48.33, 9.00,M,No,Sat,Night,4
215+
214,13.27, 2.50,F,Yes,Sat,Night,2
216+
215,28.17, 6.50,F,Yes,Sat,Night,3
217+
216,12.90, 1.10,F,Yes,Sat,Night,2
218+
217,28.15, 3.00,M,Yes,Sat,Night,5
219+
218,11.59, 1.50,M,Yes,Sat,Night,2
220+
219, 7.74, 1.44,M,Yes,Sat,Night,2
221+
220,30.14, 3.09,F,Yes,Sat,Night,4
222+
221,12.16, 2.20,M,Yes,Fri,Day,2
223+
222,13.42, 3.48,F,Yes,Fri,Day,2
224+
223, 8.58, 1.92,M,Yes,Fri,Day,1
225+
224,15.98, 3.00,F,No,Fri,Day,3
226+
225,13.42, 1.58,M,Yes,Fri,Day,2
227+
226,16.27, 2.50,F,Yes,Fri,Day,2
228+
227,10.09, 2.00,F,Yes,Fri,Day,2
229+
228,20.45, 3.00,M,No,Sat,Night,4
230+
229,13.28, 2.72,M,No,Sat,Night,2
231+
230,22.12, 2.88,F,Yes,Sat,Night,2
232+
231,24.01, 2.00,M,Yes,Sat,Night,4
233+
232,15.69, 3.00,M,Yes,Sat,Night,3
234+
233,11.61, 3.39,M,No,Sat,Night,2
235+
234,10.77, 1.47,M,No,Sat,Night,2
236+
235,15.53, 3.00,M,Yes,Sat,Night,2
237+
236,10.07, 1.25,M,No,Sat,Night,2
238+
237,12.60, 1.00,M,Yes,Sat,Night,2
239+
238,32.83, 1.17,M,Yes,Sat,Night,2
240+
239,35.83, 4.67,F,No,Sat,Night,3
241+
240,29.03, 5.92,M,No,Sat,Night,3
242+
241,27.18, 2.00,F,Yes,Sat,Night,2
243+
242,22.67, 2.00,M,Yes,Sat,Night,2
244+
243,17.82, 1.75,M,No,Sat,Night,2
245+
244,18.78, 3.00,F,No,Thu,Night,2

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ See the package overview for more detail about what's in the library.
122122
reshaping
123123
timeseries
124124
visualization
125+
rplot
125126
io
126127
sparse
127128
gotchas

doc/source/rplot.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.. currentmodule:: pandas
2+
.. _rplot:
3+
4+
.. ipython:: python
5+
:suppress:
6+
7+
import numpy as np
8+
np.random.seed(123456)
9+
from pandas import *
10+
import pandas.util.testing as tm
11+
randn = np.random.randn
12+
np.set_printoptions(precision=4, suppress=True)
13+
import matplotlib.pyplot as plt
14+
tips_data = read_csv('data/tips.csv')
15+
from pandas import read_csv
16+
from pandas.tools.plotting import radviz
17+
import pandas.tools.rplot as rplot
18+
plt.close('all')
19+
20+
**************************
21+
Trellis plotting interface
22+
**************************
23+
24+
.. ipython:: python
25+
26+
plt.figure()
27+
28+
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
29+
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
30+
plot.add(rplot.GeomHistogram())
31+
32+
@savefig rplot1_tips.png width=6in
33+
plot.render(plt.gcf())
34+
35+
.. ipython:: python
36+
37+
plt.figure()
38+
39+
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
40+
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
41+
plot.add(rplot.GeomDensity())
42+
43+
@savefig rplot2_tips.png width=6in
44+
plot.render(plt.gcf())

0 commit comments

Comments
 (0)