A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/11320 below:

Negative interger indices lead to IndexError: indices are out-of-bounds · Issue #11320 · pandas-dev/pandas · GitHub

The following test case produces IndexError: indices are out-of-bounds with negative integers, while positive work fine:

testdf = pd.DataFrame({"rna": (1.5,2.2,3.2,4.5),  -1000: [11,21,36,40],0: [10,22,43,34], 1000:[0, 10, 20, 30]})
testdf[[1000]] #this works
testdf[[-1000]] #this does not

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4