Skip to content

Pandas Dataframe issue on engine.get_loc #19466

Discussion options

You must be logged in to vote

NVM,I figure it out.

df = df[~df['Name'].isin(['A'])]

print(df.iloc[:,3])

for a in range(len(df)):
if df.iloc[a,3] == 'True':
# df['output'][a] = (df['Size'][a],df['Compare'][a])
df.iloc[a,4] = (df.iloc[a,2],df.iloc[a,3])

df

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shjustinzhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-editor-* User-facing catch-all
1 participant