إزالة الصفوف المكررة في ورقة العمل
إزالة الصفوف المكررة هو واحد من الميزات المفيدة في Microsoft Excel. يسمح للمستخدمين بإزالة الصفوف المكررة في ورقة العمل، يمكنك اختيار أي الأعمدة يجب فحصها لوجود معلومات مكررة.
توفر Aspose.Cells for Python via .NET الطريقة Cells.remove_duplicates() لهذا الغرض. يمكنك أيضًا تعيين startRow، startColumn، endRow، endColumn لاختيار الأعمدة.
فيما يلي الملفات العينية التي يمكن تنزيلها لاختبار هذه الميزة:
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Create workbook | |
book = Workbook("removeduplicates.xlsx") | |
# Remove Duplicate | |
book.worksheets[0].cells.remove_duplicates(0 , 0, 5, 3) | |
# Save result | |
book.save("removeduplicates-result.xlsx") |