Skip to content

Commit ce9feb7

Browse files
committed
DOC: replace totbill with total_bill
CLN: whoops wrong filename
1 parent 3eac8e7 commit ce9feb7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/source/rplot.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Trellis plotting interface
3030
.. code-block:: python
3131
3232
from pandas import read_csv
33-
tips_data = read_csv('tips_data.csv')
33+
tips_data = read_csv('tips.csv')
3434
3535
from the directory where you downloaded the file.
3636

@@ -50,7 +50,7 @@ RPlot is a flexible API for producing Trellis plots. These plots allow you to ar
5050
5151
plt.figure()
5252
53-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
53+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
5454
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
5555
plot.add(rplot.GeomHistogram())
5656
@@ -63,7 +63,7 @@ In the example above, data from the tips data set is arranged by the attributes
6363
6464
plt.figure()
6565
66-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
66+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
6767
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
6868
plot.add(rplot.GeomDensity())
6969
@@ -76,7 +76,7 @@ Example above is the same as previous except the plot is set to kernel density e
7676
7777
plt.figure()
7878
79-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
79+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
8080
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
8181
plot.add(rplot.GeomScatter())
8282
plot.add(rplot.GeomPolyFit(degree=2))
@@ -90,7 +90,7 @@ The plot above shows that it is possible to have two or more plots for the same
9090
9191
plt.figure()
9292
93-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
93+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
9494
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
9595
plot.add(rplot.GeomScatter())
9696
plot.add(rplot.GeomDensity2D())
@@ -104,7 +104,7 @@ Above is a similar plot but with 2D kernel desnity estimation plot superimposed.
104104
105105
plt.figure()
106106
107-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
107+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
108108
plot.add(rplot.TrellisGrid(['sex', '.']))
109109
plot.add(rplot.GeomHistogram())
110110
@@ -117,7 +117,7 @@ It is possible to only use one attribute for grouping data. The example above on
117117
118118
plt.figure()
119119
120-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
120+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
121121
plot.add(rplot.TrellisGrid(['.', 'smoker']))
122122
plot.add(rplot.GeomHistogram())
123123
@@ -130,11 +130,11 @@ If the first grouping attribute is not specified the plots will be arranged in a
130130
131131
plt.figure()
132132
133-
plot = rplot.RPlot(tips_data, x='totbill', y='tip')
133+
plot = rplot.RPlot(tips_data, x='total_bill', y='tip')
134134
plot.add(rplot.TrellisGrid(['.', 'smoker']))
135135
plot.add(rplot.GeomHistogram())
136136
137-
plot = rplot.RPlot(tips_data, x='tip', y='totbill')
137+
plot = rplot.RPlot(tips_data, x='tip', y='total_bill')
138138
plot.add(rplot.TrellisGrid(['sex', 'smoker']))
139139
plot.add(rplot.GeomPoint(size=80.0, colour=rplot.ScaleRandomColour('day'), shape=rplot.ScaleShape('size'), alpha=1.0))
140140

0 commit comments

Comments
 (0)