如何根据某些值的出现对值进行排序?
我有下表:
| Jon | "a" |
| Eva | "b" |
| Jon | "a" |
| Eva | "a" |
| Eva | "b" |
我想从第一列(名称)中获取按行数排序的唯一值,其中(对于所考虑的名称)第二列的值“a”除以包含所考虑名称的列数。
例如,对于 Eva,带有“a”的行数为 1,带有 Eva 的总列数为 3。因此,排序参数将等于 0.33(3)。
任何人都可以帮我吗?
I have the following table:
| Jon | "a" |
| Eva | "b" |
| Jon | "a" |
| Eva | "a" |
| Eva | "b" |
I would like to get unique values from the first column (names) ordered by number of rows where (for the considered name) the second column has value "a" divided by the number of columns containing the considered name.
For example for Eva the number of rows with "a" is 1, and total number of columns with Eva is 3. So, the parameter for the ordering will be equal 0.33(3).
Can anybody, pleas, help me with that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)