Skip to main content

All Questions

0 votes
0 answers
274 views

Make custom function with if-statement

I'm tring to make function with if statement. I want to change whichever df that is longer to sample to the other shorter df's length. But it doesn't work, throwing an error 'list index out of range'. ...
dkdlfls26's user avatar
  • 171
1 vote
2 answers
574 views

Python - Population of PANDAS dataframe column based on conditions met in other dataframes' columns

I have 3 dataframes (df1, df2, df3) which are identically structured (# and labels of rows/columns), but populated with different values. I want to populate df3 based on values in the associated ...
crowsnest's user avatar