Skip to content

Commit 02af908

Browse files
committed
2 parents d6c2e41 + 2ad3a1c commit 02af908

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ Represents a collection of ExcelTables to be written to an Excel file.
119119

120120
### Methods
121121

122-
- `add_table()`: Adds a table to the DataOutput
123-
- `write()`: Writes the DataOutput to an Excel file
122+
- `add_table(df, sheet_name)`: Adds a table to the DataOutput
123+
- `write(filename)`: Writes the DataOutput to an Excel file
124124

125125
### Usage
126126

@@ -136,10 +136,10 @@ table1 = ExcelTable(
136136
title="Test Table"
137137
)
138138

139-
output.add_table("test_sheet", table1)
139+
output.add_table(table1, "test_sheet")
140140

141141
df2 = pd.DataFrame({"alice": [1, 2, 3], "bob": [4, 5, 6]})
142-
output.add_table("test_sheet", df2, title="Test Table 2")
142+
output.add_table(df2, "test_sheet", title="Test Table 2")
143143

144144
output.write("test_file.xlsx")
145145
```

0 commit comments

Comments
 (0)