Skip to content

Commit

Permalink
code sample for pandas-dev#39695
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Feb 12, 2021
1 parent c49c8fa commit eac38f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bisect/39695.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pandas as pd

print(pd.__version__)

dft = pd.DataFrame({"A": [0, 1], "B": [10, 11]})
dft.to_excel("test.xlsx", columns=["A", "B", "A"], engine="openpyxl")

result = pd.read_excel("test.xlsx", engine="openpyxl")
print(result)

0 comments on commit eac38f3

Please sign in to comment.