[SOLVED on SO] Downsizing non-representative data in DataFrame - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: [SOLVED on SO] Downsizing non-representative data in DataFrame (/thread-13103.html) |
[SOLVED on SO] Downsizing non-representative data in DataFrame - volcano63 - Sep-27-2018 Hi, folks, I occasionally dabble in pandas - but I cannot claim deep knowledge. Today I had to filter out some rows from a DataFrame based on occurence of a value in a certain column. As in this example I want to remove all rows where a value in the group column appears only once.I hacked around the problem by this inellegant solution But I bet there are proper ways to achieve the same goal.Anyone can suggest a more pandaic solution?!Thanks in advance RE: Downsizing non-representative data in DataFrame - volcano63 - Sep-28-2018 If anyone is interested - with trepidation, I posted this question on SO (those in the know will understand my reluctance), and - got an answer, without being hassled for the whole half an hour and counting |