Skip to content

Commit e8c7cd4

Browse files
committed
Update readme.md
1 parent 7e2dc9c commit e8c7cd4

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

readme.md

+41-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# excel-file-splitter-python
2-
This Python script splits a large Excel file into smaller files with a specified number of rows. It uses the `pandas` library to handle the Excel data and `tkinter` for a simple file selection dialog.
1+
# Excel File Splitter
2+
3+
This Python script splits a large Excel file into smaller files with a specified number of rows. It uses the `pandas` library to handle the Excel data and `tkinter` for a simple file selection dialog.
4+
5+
## Requirements
6+
7+
- Python 3.x
8+
- pandas
9+
- openpyxl
10+
- tkinter
11+
12+
You can install the required packages using pip:
13+
14+
```bash
15+
pip install pandas openpyxl tk
16+
```
17+
18+
## Usage
19+
20+
1. Clone this repository or download the script.
21+
2. Run the script. A file dialog will open to allow you to select the Excel file you want to split.
22+
3. The script will split the selected file into chunks of 1000 rows each and save them as `part_1.xlsx`, `part_2.xlsx`, etc.
23+
24+
## Example
25+
26+
Suppose you have an Excel file named `large_file.xlsx` with 5000 rows. Running the script will create the following files:
27+
28+
- `part_1.xlsx` (rows 1 to 1000)
29+
- `part_2.xlsx` (rows 1001 to 2000)
30+
- `part_3.xlsx` (rows 2001 to 3000)
31+
- `part_4.xlsx` (rows 3001 to 4000)
32+
- `part_5.xlsx` (rows 4001 to 5000)
33+
34+
## Notes
35+
36+
- Ensure that the Excel file you select is properly formatted and does not contain any corrupted data.
37+
- The script does not preserve any formulas or formatting from the original Excel file. It only copies the raw data.
38+
39+
## License
40+
41+
This project is licensed under the MIT License.

0 commit comments

Comments
 (0)