The Wayback Machine - https://web.archive.org/web/20191031153924/https://github.com/topics/python
Skip to content
python logo

Python

Python is a dynamically typed programming language designed by Guido van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.

Here are 120,915 public repositories matching this topic...

httpie
rshurts
rshurts commented Mar 8, 2017

Brew is listed as the recommended way of installing httpie on macOS. However, it doesn't work with auth plugins.

For example, if you pip3 install requests-hawk and then run http --help hawk will not show as an auth type. If you pip3 install httpie-oauth it will install httpie via pip as a dependency and overwrite the brew installed link in /usr/local/bin/http and now all the plugins wil

requests
rabbbit
rabbbit commented Oct 2, 2017

tldr; in multi-process environment (Celery) sessions might lead to request/responses being mixed up.

It is unsafe to use Session in a multi-process environment - if the fork happens after Session initialisation the underlying connection pool will be shared across both processes, leading to potentially dangerous and hard to debug issues.

I'm not sure what should happen - whather a code change

amueller
amueller commented Sep 20, 2019

I think this example should use multimetric scoring:
https://scikit-learn.org/dev/auto_examples/model_selection/plot_grid_search_digits.html#sphx-glr-auto-examples-model-selection-plot-grid-search-digits-py

That would mean that we have to specify "refit" though, and we would refit only based on one of them. We could technically reuse the same grid-search results and refit another time as an al

yf225
yf225 commented Oct 2, 2019

Context

We would like to add the following two APIs to the C++ frontend:

  • torch::nn::TripletMarginLoss , which is the equivalent of Python API torch.nn.TripletMarginLoss.
  • torch::nn::functional::triplet_margin_loss, which is the equivalent of Python API torch.nn.functional.triplet_margin_loss.

Steps

  • Add torch::nn::TripletMarginLossOptions to `torch/csrc/api/i
ajphukan
ajphukan commented Oct 25, 2019

Code Sample, a copy-pastable example if possible

import pandas as pd
df = pd.read_file('filename.xlsx', header= None, skiprows=1, parse_dates=False)

Problem description

In read_excel parse_date default value is False , but still it is parsing the date.

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has

azl397985856
azl397985856 commented Oct 28, 2019

数轴上放置了一些筹码,每个筹码的位置存在数组 chips 当中。

你可以对 任何筹码 执行下面两种操作之一(不限操作次数,0 次也可以):

将第 i 个筹码向左或者右移动 2 个单位,代价为 0。
将第 i 个筹码向左或者右移动 1 个单位,代价为 1。
最开始的时候,同一位置上也可能放着两个或者更多的筹码。

返回将所有筹码移动到同一位置(任意位置)上所需要的最小代价。

 

示例 1:

输入:chips = [1,2,3]
输出:1
解释:第二个筹码移动到位置三的代价是 1,第一个筹码移动到位置三的代价是 0,总代价为 1。
示例 2:

输入:chips = [2,2,2,3,3]
输出:2
解释:第四和第五个筹码移动到位置二的代价都是 1,所以最小总代价为 2。
 

提示:

1 <= chips.length <= 1

You can’t perform that action at this time.