Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Oct 27, 2024
1 parent 41a2b1c commit 9e02889
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions examples/xlsx/xlsx.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
import Mads
import DataFrames
import OrderedCollections

cd(@__DIR__)
workdir = joinpath(Mads.dir, "examples", "xlsx")
xlsxfile = joinpath(workdir, "test.xlsx")

df = Mads.get_excel_data("test.xlsx")
df = Mads.get_excel_data(xlsxfile)

df = Mads.get_excel_data("test.xlsx", "Sheet1")
df = Mads.get_excel_data(xlsxfile, "Sheet1")

df = Mads.get_excel_data("test.xlsx", "Sheet1"; header=1:2)
df = Mads.get_excel_data(xlsxfile, "Sheet1"; header=1:2)

df = Mads.get_excel_data("test.xlsx", "Sheet1"; header=1:1, rows=3:102)
df = Mads.get_excel_data(xlsxfile, "Sheet1"; header=1:1, rows=3:102)

df = Mads.get_excel_data("test.xlsx", "Sheet1"; header=1:1, rows=3:102, cols=1:6)
df = Mads.get_excel_data(xlsxfile, "Sheet1"; header=1:1, rows=3:102, cols=1:6)

df = Mads.get_excel_data("test.xlsx", "Sheet1"; header=1:1, rows=3:102, cols=[1,3,7,5])
df = Mads.get_excel_data(xlsxfile, "Sheet1"; header=1:1, rows=3:102, cols=[1,3,7,5])

dd = Mads.get_excel_data(xlsxfile, "Sheet1"; header=1:1, rows=3:102, cols=[1,3,7,5], dataframe=false)

dd = Mads.get_excel_data(xlsxfile, "Sheet1"; header=1:1, rows=3:102, cols=[1,3,7,5], dataframe=false, keytype=Symbol)

0 comments on commit 9e02889

Please sign in to comment.