File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -423,21 +423,21 @@ def read_excel(
423423 The file can be read using the file name as string or an open file object:
424424
425425 >>> pd.read_excel("tmp.xlsx", index_col=0) # doctest: +SKIP
426- Name Value
426+ Name Value
427427 0 string1 1
428428 1 string2 2
429429 2 #Comment 3
430430
431431 >>> pd.read_excel(open("tmp.xlsx", "rb"), sheet_name="Sheet3") # doctest: +SKIP
432- Unnamed: 0 Name Value
432+ Unnamed: 0 Name Value
433433 0 0 string1 1
434434 1 1 string2 2
435435 2 2 #Comment 3
436436
437437 Index and header can be specified via the `index_col` and `header` arguments
438438
439439 >>> pd.read_excel("tmp.xlsx", index_col=None, header=None) # doctest: +SKIP
440- 0 1 2
440+ 0 1 2
441441 0 NaN Name Value
442442 1 0.0 string1 1
443443 2 1.0 string2 2
@@ -448,7 +448,7 @@ def read_excel(
448448 >>> pd.read_excel(
449449 ... "tmp.xlsx", index_col=0, dtype={"Name": str, "Value": float}
450450 ... ) # doctest: +SKIP
451- Name Value
451+ Name Value
452452 0 string1 1.0
453453 1 string2 2.0
454454 2 #Comment 3.0
@@ -460,7 +460,7 @@ def read_excel(
460460 >>> pd.read_excel(
461461 ... "tmp.xlsx", index_col=0, na_values=["string1", "string2"]
462462 ... ) # doctest: +SKIP
463- Name Value
463+ Name Value
464464 0 NaN 1
465465 1 NaN 2
466466 2 #Comment 3
@@ -469,7 +469,7 @@ def read_excel(
469469 ``comment`` kwarg.
470470
471471 >>> pd.read_excel("tmp.xlsx", index_col=0, comment="#") # doctest: +SKIP
472- Name Value
472+ Name Value
473473 0 string1 1.0
474474 1 string2 2.0
475475 2 None NaN
You can’t perform that action at this time.
0 commit comments