A RetroSearch Logo

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

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.errors.PerformanceWarning.html below:

pandas.errors.PerformanceWarning — pandas 2.3.1 documentation

Warning raised when there is a possible performance impact.

>>> df = pd.DataFrame({"jim": [0, 0, 1, 1],
...                    "joe": ["x", "x", "z", "y"],
...                    "jolie": [1, 2, 3, 4]})
>>> df = df.set_index(["jim", "joe"])
>>> df
          jolie
jim  joe
0    x    1
     x    2
1    z    3
     y    4
>>> df.loc[(1, 'z')]  
# PerformanceWarning: indexing past lexsort depth may impact performance.
df.loc[(1, 'z')]
          jolie
jim  joe
1    z        3

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