我需要找到我数据框中的大数据列的平均值,不包括6个特定的行,每个行包含不同的数值。到目前为止,我有<mat-form-field appearance="outline" floatLabel="always">
<mat-label>{{ label || 'User' }}</mat-label>
<input matInput spellcheck="false" [formControl]="userInputControl">
<mat-icon matPrefix style="cursor: pointer; margin-right: 10px;">search</mat-icon>
<mat-icon matSuffix style="cursor: pointer;" (click)="updateUserListSettings()">person</mat-icon>
<mat-hint>Search using User ID, Name, or Email Address</mat-hint>
</mat-form-field>
<mat-form-field class="te-form-225" appearance="outline">
<mat-label>Role Class</mat-label>
<mat-select [(ngModel)]="filterRoleClass" (selectionChange)="filterRoles()">
<mat-option *ngFor="let rc of roleClasses" [value]="rc">{{ rc | titleCase }}</mat-option>
</mat-select>
</mat-form-field>
Angular CLI: 8.3.20
Node: 12.13.1
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.10
@angular-devkit/build-angular 0.803.10
@angular-devkit/build-optimizer 0.803.10
@angular-devkit/build-webpack 0.803.10
@angular-devkit/core 8.3.10
@angular-devkit/schematics 8.3.20
@angular/cdk 8.2.3
@angular/cli 8.3.20
@angular/material 8.2.3
@ngtools/webpack 8.3.10
@schematics/angular 8.3.20
@schematics/update 0.803.20
rxjs 6.5.3
typescript 3.5.3
webpack 4.41.1
,它只计算整个列的平均值。 Calculate mean and other excluding certain values有两个类似的问题。但是,只有在每个被排除的数值都相同的情况下,这才起作用。