Boş Hücreler İçin pivot tablo seçeneğini ayarlayın
Contents
[
Hide
]
Aspose.Cells for Python via .NET kullanarak farklı pivot tablo seçenekleri ayarlayabilirsiniz. Bu seçeneklerden biri “Boş hücreleri göster"dir. Bu seçeneği ayarlayarak, bir pivot tablosundaki tüm boş hücreler belirli bir dize olarak görüntülenir.
Microsoft Excel’de Pivot Tablo Seçeneği Nasıl Ayarlanır
Bu seçeneği bulup Microsoft Excel’de ayarlamak için:
- Bir pivot tablo seçin ve sağ tıklayın.
- PivotTablo Seçenekleri‘ni seçin.
- Düzen ve Biçim sekmesini seçin.
- Boş hücreler için göster seçeneğini seçin ve bir dize belirtin.
Aspose.Cells for Python Excel Kütüphanesi Kullanarak Pivot Tablo Seçeneği Nasıl Ayarlanır
Aspose.Cells for Python via .NET, “Boş hücreleri göster” pivot tablo seçeneğini belirlemek için PivotTable.display_null_string ve PivotTable.null_string özellikleri sağlar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
wb = Workbook(dataDir + "input.xlsx") | |
pt = wb.worksheets[0].pivot_tables[0] | |
# Indicating if or not display the empty cell value | |
pt.display_null_string = True | |
# Indicating the null string | |
pt.null_string = "null" | |
pt.calculate_data() | |
pt.refresh_data_on_opening_file = False | |
wb.save(dataDir + "output_out.xlsx") |