sql distinc on only one column code example
Example 1: how to find mean of one column based on another column in python
In [5]: df.groupby('Column1')['Column2'].mean()
Example 2: sql select all from one table and one column from another
SELECT myTable.*, otherTable.foo, otherTable.bar...