Skip to content

Commit db6cf67

Browse files
authored
Update test_frame.py
fixing lint E231
1 parent edf008d commit db6cf67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/tests/plotting/test_frame.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,8 @@ def test_plot_scatter(self):
10321032

10331033
@pytest.mark.slow
10341034
def test_if_scatterplot_colorbar_affects_xaxis_visibility(self):
1035-
random_array = np.random.random((1000,3))
1036-
df = pd.DataFrame(random_array,columns=['A label','B label','C label'])
1035+
random_array = np.random.random((1000, 3))
1036+
df = pd.DataFrame(random_array,columns=['A label', 'B label', 'C label'])
10371037

10381038
ax1 = df.plot.scatter(x='A label', y='B label')
10391039
ax2 = df.plot.scatter(x='A label', y='B label', c='C label')
@@ -1043,7 +1043,7 @@ def test_if_scatterplot_colorbar_affects_xaxis_visibility(self):
10431043
ax2.xaxis.get_minorticklabels())]), \
10441044
'minor x-axis tick labels visibility ' \
10451045
'changes when colorbar included'
1046-
assert all([vis[0].get_visible() == vis[1].get_visible() for vis in
1046+
assert all([vis[0].get_visible() == vis[1].get_visible() for vis in
10471047
zip(ax1.xaxis.get_majorticklabels(),
10481048
ax2.xaxis.get_majorticklabels())]), \
10491049
'major x-axis tick labels visibility ' \
@@ -1054,10 +1054,10 @@ def test_if_scatterplot_colorbar_affects_xaxis_visibility(self):
10541054

10551055
@pytest.mark.slow
10561056
def test_if_hexbin_xaxis_label_is_visible(self):
1057-
random_array = np.random.random((1000,3))
1058-
df = pd.DataFrame(random_array,columns=['A label','B label','C label'])
1057+
random_array = np.random.random((1000, 3))
1058+
df = pd.DataFrame(random_array,columns=['A label', 'B label', 'C label'])
10591059

1060-
ax = df.plot.hexbin('A label','B label', gridsize=12)
1060+
ax = df.plot.hexbin('A label', 'B label', gridsize=12)
10611061
assert all([vis.get_visible() for vis in
10621062
ax.xaxis.get_minorticklabels()]), \
10631063
'minor x-axis tick labels are not visible'

0 commit comments

Comments
 (0)