这是输出格式
1. Welcome
2. XXX 123 123
3. YYY 456 456
4. GoodMorning
5. ZZZ 789 789
6. Thank you
7. QQQ 459 459
我不想在欢迎中有$ index值,早上好,谢谢您。我想在名称行中显示$ index值1,2,3,4
答案 0 :(得分:0)
您可以将代码更新为关注
df["text"] = df["text"].str.replace("[AaÄäEe]ue|(ue)", "ü")
编辑
这是根据更新要求的有效代码
<tr ng-repeat="i in names">
<td data-ng-if="$index > 0">{{$index}}</td>
<td colspan="2" data-ng-if="$index > 0">{{name}}</td>
<td data-ng-if="$index > 0">{{address}}</td>
<td data-ng-if="$index > 0">{{mobile}}</td>
<td data-ng-if="$index == 0" colspan="5">Welcome</td>
</tr>
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.names=
[ { show: true, label : "welcome" },
{name:"XXX", address: 123, phno :123 },
{name:"YYY", address: 123, phno :123 },
{ show: true, label : "goodbye" },
{name:"AAA", address: 123, phno :123 },
{name:"BBB", address: 123, phno :123 }
];
$scope.counter = {index:0};
});