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
The following section is fairly unclear and should be improved for clarity and simplicity.
ifset(fake.columns.tolist()).issubset(set(real.columns.tolist())):
real=real[fake.columns]
elifdrop_columnsisnotNone:
real=real.drop(drop_columns, axis=1)
try:
fake=fake.drop(drop_columns, axis=1)
except:
print(f'Some of {drop_columns} were not found on fake.index.')
assertlen(fake.columns.tolist()) ==len(real.columns.tolist()), \
f'Real and fake do not have same nr of columns: {len(fake.columns)} and {len(real.columns)}'fake.columns=real.columnselse:
fake.columns=real.columns
The text was updated successfully, but these errors were encountered:
The following section is fairly unclear and should be improved for clarity and simplicity.
The text was updated successfully, but these errors were encountered: