## Is your feature request related to a problem?

There's only 2 files where we use pandas, but pandas is 49MB and numpy is another 86MB, slowing down builds massively.

## Describe the solution you'd like

Replace pandas with a pure SQL/Python solution in
- posthog/queries/trends.py
- posthog/queries/sessions.py

Both of those have equivalent examples in Clickhouse (ee/clickhouse) that don't use Pandas.

## Describe alternatives you've considered

Continue using Pandas and clogging builds

## Additional context



#### *Thank you* for your feature request – we love each and every one!

posthog/queries/test/test_trends.py
person1 = person_factory(team_id=self.team.pk, distinct_ids=["person_1"], properties={"name": "John"})
            for time in dates:
                with freeze_time(time):
                    event_factory(
                        event="event_name", team=self.team, distinct_id="person_1", properties={"$browser": "Safari"},
                    )
            if query_time:
                with freeze_time(query_time):
                    response = trends().run(
                        Filter(data={**filter_params, "events": [{"id": "event_name"}]}), self.team,
                    )
            else:
                response = trends().run(Filter(data={**filter_params, "events": [{"id": "event_name"}]}), self.team,)
            self.assertEqual(response, result)
        def test_minute_interval(self):