我希望这是转换成php,任何人请。我正在做营销应用程序编码发送群发短信
from flask import Flask, request
from twilio.rest import TwilioRestClient
app = Flask(__name__)
# put your own credentials here
ACCOUNT_SID = 'YOUR_ACCOUNT_SID'
AUTH_TOKEN = 'YOUR_AUTH_TOKEN'
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN
给定测试数据集如下:
id city name
0 1 bj NaN
1 2 bj jack
2 3 bj NaN
3 4 bj jim
4 5 sh NaN
5 6 sh NaN
6 7 sh steve
7 8 sh fiona
8 9 sh NaN
我如何通过city进行群群,为name删除NaN行,同时只为每个group保留一个行?非常感谢。
预期结果如下:
id city name
0 1 bj NaN
1 2 bj jac