Skip to content

Commit 5ed0568

Browse files
committed
Apply black pandas
1 parent cd7bee6 commit 5ed0568

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pandas/io/excel/_odfreader.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,6 @@ def _get_cell_string_value(self, cell):
200200
value.append(fragment.data)
201201
elif isinstance(fragment, Element):
202202
if fragment.qname == text_s:
203-
spaces = int(fragment.attributes.get((TEXTNS, 'c'), 1))
204-
value.append(' ' * spaces)
205-
return ''.join(value)
203+
spaces = int(fragment.attributes.get((TEXTNS, "c"), 1))
204+
value.append(" " * spaces)
205+
return "".join(value)

pandas/tests/io/excel/test_readers.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,12 @@ def test_reader_spaces(self, read_ext):
471471
actual = pd.read_excel(basename + read_ext)
472472
expected = DataFrame(
473473
{
474-
'testcol': [
475-
'this is great',
476-
'4 spaces',
477-
'1 trailing ',
478-
' 1 leading',
479-
'2 spaces multiple times',
474+
"testcol": [
475+
"this is great",
476+
"4 spaces",
477+
"1 trailing ",
478+
" 1 leading",
479+
"2 spaces multiple times",
480480
]
481481
}
482482
)

0 commit comments

Comments
 (0)