25c541269c2c4003e4f8c2e6fa3b3c75cb1e5a46,pandas/core/indexes/period.py,PeriodIndex,asof_locs,#PeriodIndex#Any#Any#,407
Before Change
locs = self.asi8[mask].searchsorted(where_idx.asi8, side="right")
locs = np.where(locs > 0, locs - 1, 0)
result = np.arange(len(self))[mask].take(locs)
first = mask.argmax()
result[(locs == 0) & (where_idx.asi8 < self.asi8[first])] = -1
After Change
elif not isinstance(where, PeriodIndex):
raise TypeError("asof_locs `where` must be DatetimeIndex or PeriodIndex")
return super().asof_locs(where, mask)
@doc(Index.astype)
def astype(self, dtype, copy: bool = True, how="start"):
dtype = pandas_dtype(dtype)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pandas-dev/pandas
Commit Name: 25c541269c2c4003e4f8c2e6fa3b3c75cb1e5a46
Time: 2020-11-02
Author: jbrockmendel@gmail.com
File Name: pandas/core/indexes/period.py
Class Name: PeriodIndex
Method Name: asof_locs
Project Name: BindsNET/bindsnet
Commit Name: 2baaefbede4d08ab8f9080430d9a98f84a2d01e3
Time: 2020-03-04
Author: 280943872@qq.com
File Name: bindsnet/network/topology.py
Class Name: MaxPool2dConnection
Method Name: compute
Project Name: reinforceio/tensorforce
Commit Name: 9128a4b20336fb8c07fc4e0e0985fe299d1a5f12
Time: 2017-05-20
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/memories/replay_memory.py
Class Name: ReplayMemory
Method Name: get_batch