我如何使用本地主机在我的应用程序上测试 Google Oauth 2.0,因为 Google 需要顶级私有域作为授权域?
我试图查找解决方案,但给出的所有解决方案都是前一段时间,我认为谷歌从那时起改变了他们的服务。
请帮忙 :)
我有这种形式的熊猫数据框:
Country Year Value
0 Thailand 1989 48587.03
1 Thailand 1990 55903.07
2 Vietnam 1989 100290.04
3 Vietnam 1990 118873.59
4 India 1989 147383.02
5 India 1990 178230.05
Run Code Online (Sandbox Code Playgroud)
中的值的dtype Value为float。
我正在用seaborn来浮动它:
sns.lineplot(x='Year', y='Value', hue='Country', data=topfiveot)
Run Code Online (Sandbox Code Playgroud)
并得到一个错误:
DataError: No numeric types to aggregate
Run Code Online (Sandbox Code Playgroud)
是什么引起了该问题?
我正在尝试在 Cloudformation 中为 API 网关创建 VPC 端点,但收到此错误:
Endpoint type (Gateway) does not match available service types ([Interface]).
Run Code Online (Sandbox Code Playgroud)
下面的模板放置在资源部分中:
executeApiEndpoint:
Type: AWS::EC2::VPCEndpoint
Properties:
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal: "*"
Action:
- "execute-api:Invoke"
- "execute-api:ManageConnections"
Resource:
- "arn:aws:execute-api:*:*:*"
RouteTableIds:
- !Ref privateRouteTable
ServiceName: !Sub com.amazonaws.${AWS::Region}.execute-api
VpcId: !Ref pubPrivateVPC
Run Code Online (Sandbox Code Playgroud)
这个也不起作用:
executeApiEndpoint:
Type: AWS::EC2::VPCEndpoint
Properties:
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal: "*"
Action:
- "execute-api:*"
Resource:
- "*"
RouteTableIds:
- !Ref privateRouteTable
ServiceName: !Sub com.amazonaws.${AWS::Region}.execute-api
VpcId: !Ref pubPrivateVPC
Run Code Online (Sandbox Code Playgroud)
但是,这个块(来自模板)能够在没有任何错误的情况下执行: …