df.to_sql(name='hourly', con=engine, if_exists='append', index=False)

It inserts data not only to table 'hourly', but also to table 'margin' - I execute this particular line only.
It's Postgresql 10.
While Creating table 'hourly', I inherited column names and dtypes from table 'margin'.
Is it something wrong with the db itself or is it Python code?
Removing

INHERITS (tablename);

on the slave table (creating it again without INHERITS)
seems to have done the trick.
Only a matter of curiosity:
Why did it matter? I thought inheritance only gets columns and dtypes not the actual data.
Pandas Dataframe.to_sql wrongly inserting into more than one table (postgresql)