Skip to content

Commit b70e59e

Browse files
itholicHyukjinKwon
authored andcommitted
Reset unrelated changes exactly
1 parent 1ae8192 commit b70e59e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

databricks/koalas/tests/test_series_plot.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ def test_bar_plot(self):
7878
pdf = self.pdf1
7979
kdf = self.kdf1
8080

81-
ax1 = pdf['a'].plot('bar', colormap='Paired')
82-
ax2 = kdf['a'].plot('bar', colormap='Paired')
81+
ax1 = pdf['a'].plot("bar", colormap='Paired')
82+
ax2 = kdf['a'].plot("bar", colormap='Paired')
8383
self.compare_plots(ax1, ax2)
8484

85-
ax1 = pdf['a'].plot('bar', colormap='Paired')
86-
ax2 = kdf['a'].plot('bar', colormap='Paired')
85+
ax1 = pdf['a'].plot(kind='bar', colormap='Paired')
86+
ax2 = kdf['a'].plot(kind='bar', colormap='Paired')
8787
self.compare_plots(ax1, ax2)
8888

8989
def test_bar_plot_limited(self):
@@ -107,8 +107,8 @@ def test_pie_plot(self):
107107
ax2 = kdf['a'].plot.pie(colormap='Paired')
108108
self.compare_plots(ax1, ax2)
109109

110-
ax1 = pdf['a'].plot('pie', colormap='Paired')
111-
ax2 = kdf['a'].plot('pie', colormap='Paired')
110+
ax1 = pdf['a'].plot(kind='pie', colormap='Paired')
111+
ax2 = kdf['a'].plot(kind='pie', colormap='Paired')
112112
self.compare_plots(ax1, ax2)
113113

114114
def test_pie_plot_limited(self):
@@ -127,8 +127,8 @@ def test_line_plot(self):
127127
pdf = self.pdf1
128128
kdf = self.kdf1
129129

130-
ax1 = pdf['a'].plot('line', colormap='Paired')
131-
ax2 = kdf['a'].plot('line', colormap='Paired')
130+
ax1 = pdf['a'].plot("line", colormap='Paired')
131+
ax2 = kdf['a'].plot("line", colormap='Paired')
132132
self.compare_plots(ax1, ax2)
133133

134134
ax1 = pdf['a'].plot.line(colormap='Paired')
@@ -139,8 +139,8 @@ def test_barh_plot(self):
139139
pdf = self.pdf1
140140
kdf = self.kdf1
141141

142-
ax1 = pdf['a'].plot('barh', colormap='Paired')
143-
ax2 = kdf['a'].plot('barh', colormap='Paired')
142+
ax1 = pdf['a'].plot("barh", colormap='Paired')
143+
ax2 = kdf['a'].plot("barh", colormap='Paired')
144144
self.compare_plots(ax1, ax2)
145145

146146
def test_barh_plot_limited(self):
@@ -170,8 +170,8 @@ def test_hist_plot(self):
170170
ax2 = kdf['a'].plot.hist(bins=15)
171171
self.compare_plots(ax1, ax2)
172172

173-
ax1 = pdf['a'].plot('hist', bins=15)
174-
ax2 = kdf['a'].plot('hist', bins=15)
173+
ax1 = pdf['a'].plot(kind='hist', bins=15)
174+
ax2 = kdf['a'].plot(kind='hist', bins=15)
175175
self.compare_plots(ax1, ax2)
176176

177177
ax1 = pdf['a'].plot.hist(bins=3, bottom=[2, 1, 3])
@@ -198,17 +198,17 @@ def test_area_plot(self):
198198
}, index=pd.date_range(start='2018/01/01', end='2018/07/01', freq='M'))
199199
kdf = koalas.from_pandas(pdf)
200200

201-
ax1 = pdf['sales'].plot('area', colormap='Paired')
202-
ax2 = kdf['sales'].plot('area', colormap='Paired')
201+
ax1 = pdf['sales'].plot("area", colormap='Paired')
202+
ax2 = kdf['sales'].plot("area", colormap='Paired')
203203
self.compare_plots(ax1, ax2)
204204

205205
ax1 = pdf['sales'].plot.area(colormap='Paired')
206206
ax2 = kdf['sales'].plot.area(colormap='Paired')
207207
self.compare_plots(ax1, ax2)
208208

209209
# just a sanity check for df.col type
210-
ax1 = pdf.sales.plot('area', colormap='Paired')
211-
ax2 = kdf.sales.plot('area', colormap='Paired')
210+
ax1 = pdf.sales.plot("area", colormap='Paired')
211+
ax2 = kdf.sales.plot("area", colormap='Paired')
212212
self.compare_plots(ax1, ax2)
213213

214214
def boxplot_comparison(self, *args, **kwargs):

0 commit comments

Comments
 (0)