以不同的印度语言以编程方式从Asp.net发送短信[关闭](Sending SMS programatically from Asp.net in different Indian languages [closed])
我想知道C#代码或网络服务用英语以及印地语,泰米尔语等不同的印度语发送短信。我使用mVaayoo从我的应用程序发送英语短信。
我还想知道如何通过我的网络表单输入印度语。 请建议任何提供API / webservice的站点/网关,以用于发送多语言SMS。
I would like to know the C# code or webservice to send SMS in English as well as in different Indian languages such as Hindi, Tamil, etc. I have used mVaayoo to send SMS in English from my application.
I would also like to know how to input the Indian language through my web form. Please suggest any site/gateway that provides the API/webservice for use in sending multi-language SMS.
原文:https://stackoverflow.com/questions/18269015
最满意答案
那是你要的吗?
cols = df.columns.drop('name').tolist()
或者按照@jezrael的建议:
cols = df.columns.difference(['name'])
接着:
s = df.groupby('name')[cols].apply(lambda x: x.to_dict('r')).to_json()
让我们打印得很好:
In [45]: print(json.dumps(json.loads(s), indent=2)) { "bill": [ { "credits": 3.0, "email": "something_else@a.com" }, { "credits": 4.0, "email": "something@a.com" } ], "bob": [ { "credits": null, "email": "test1@foo.com" }, { "credits": 6.0, "email": "test@foo.com" } ], "tammy": [ { "credits": 5.0, "email": "hello@gmail.org" } ] }
Is that what you want?
cols = df.columns.drop('name').tolist()
or as recommended by @jezrael:
cols = df.columns.difference(['name'])
and then:
s = df.groupby('name')[cols].apply(lambda x: x.to_dict('r')).to_json()
let's print it nicely:
In [45]: print(json.dumps(json.loads(s), indent=2)) { "bill": [ { "credits": 3.0, "email": "something_else@a.com" }, { "credits": 4.0, "email": "something@a.com" } ], "bob": [ { "credits": null, "email": "test1@foo.com" }, { "credits": 6.0, "email": "test@foo.com" } ], "tammy": [ { "credits": 5.0, "email": "hello@gmail.org" } ] }
相关问答
更多-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
你可以在这里使用布尔索引type和``.apply: int_records = df[df.apply(type) == int] bool_records = df[df.apply(type) == bool] str_records = df[df.apply(type) == str] 如果有很多类型需要比较,你可以更轻松地做到 type_series = df.apply(type) # or type_series = [type(x) for x in df] int_records ...
-
pd.to_datetime可以将具有适当命名列的pd.DataFrame作为参数。 pd.DataFrame构造函数将适当地解析元组列表。 我们要做的就是分配正确的列名并传递给pd.to_datetime pd.to_datetime(pd.DataFrame(multIdx, columns=['year', 'month', 'day', 'hour'])) 0 2017-01-01 02:00:00 1 2020-01-01 03:00:00 2 2019-01-01 04:00:00 ...
-
您可以像这样重写您的函数: def get_total(x): name = x["NAME"] city = x["CITY"] index = x.name records df.loc[0:index] return records.loc[(records['NAME'] == name) & (records['CITY']==city)].size name属性是当前行索引值 You can rewrite your function like this ...
-
创建一个视图(索引)以显示特定ID的记录列表?(Create a view (index) to show a list of records for a specific id?)[2023-10-17]
它会工作,因为我相信,但你可以这样做 var houseRecords = db.Households.Where(x => x.ClientId = x.id).ToList(); 我认为在获得最终名单之前做更好的做法 it will work as i believe but you can do it this way var houseRecords = db.Households.Where(x => x.ClientId = x.id).ToList(); i think it ... -
那是你要的吗? cols = df.columns.drop('name').tolist() 或者按照@jezrael的建议: cols = df.columns.difference(['name']) 接着: s = df.groupby('name')[cols].apply(lambda x: x.to_dict('r')).to_json() 让我们打印得很好: In [45]: print(json.dumps(json.loads(s), indent=2)) { "bill": ...
-
var info = (from b in mUserHistorys where b.Department_Selected != null select b).ToList() .GroupBy(x => x.Department_Selected) .Select(y => y.First()) ...
-
熊猫不会将JSON文件中的每个对象映射到数据框中的列。 您的示例文件包含24列: with open('tweets.json') as f: df = pd.read_json(f, lines = True) df.columns 返回: Index(['contributors', 'coordinates', 'created_at', 'entities', 'favorite_count', 'favorited', 'geo', 'id', 'id_str', 'in_r ...
-
如何在pandas中的groupby()。mean()之后获得索引值列表?(How to get a list of index values after groupby().mean() in pandas?)[2022-05-16]
如果您有索引,请查看索引。 如果您有MultiIndex,请使用get_level_values查看@ jezrael的答案。 means.index.tolist() Just look at the index if you have an Index. If you have a MultiIndex, see @jezrael's answer with get_level_values. means.index.tolist() -
绘制多个分组的熊猫(Plotting Multiple Groupedby Pandas)[2024-04-10]
你确定要使用groupby吗? 根据你的描述,似乎你会更好地服务于pivot 。 data = pd.DataFrame() data['x_axis'] = [1,1,2,2] data['category'] = ['a','b','a','b'] data['y_value'] = [10,15,20,30] pivoted_data = data.pivot('x_axis', 'category') pivoted_data.plot(kind='bar', stacked=True) plt ...