You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python 3.11.4
pylance v2024.3.1
pandas 2.2.1
vscode 1.87.2 windows 10
Since the latest pylance update, I have found large portions of code being marked as unreachable when they definitely are not.
I don't know for sure that this is a pandas issue, but that was the easiest way I could reproduce the error. In the following code (meaningless, just to demonstrate), the print statement is marked as unreachable by pylance following a use of the pandas function:
import pandas as pd
df1 = pd.DataFrame()
df2 = pd.DataFrame()
def testfxn(df1, df2):
for a in range(5):
test = pd.concat([df1, df2], axis=1)
print('hi!')
testfxn(df1, df2)
The text was updated successfully, but these errors were encountered:
python 3.11.4
pylance v2024.3.1
pandas 2.2.1
vscode 1.87.2 windows 10
Since the latest pylance update, I have found large portions of code being marked as unreachable when they definitely are not.
I don't know for sure that this is a pandas issue, but that was the easiest way I could reproduce the error. In the following code (meaningless, just to demonstrate), the print statement is marked as unreachable by pylance following a use of the pandas function:
The text was updated successfully, but these errors were encountered: