## 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/sessions/sessions.py
from typing import Any, Dict, List, Tuple
import pandas as pd
from dateutil.relativedelta import relativedelta
from django.db import connection
from django.db.models import F, Q, QuerySet
from django.db.models.expressions import Window
from django.db.models.functions import Lag
from django.utils.timezone import now
from posthog.constants import SESSION_AVG
from posthog.models import Event, Filter, Team
from posthog.queries.base import BaseQuery, convert_to_comparison, determine_compared_filter, properties_to_Q
from posthog.utils import append_data, friendly_time
DIST_LABELS = [
    "0 seconds (1 event)",
    "0-3 seconds",
    "3-10 seconds",
    "10-30 seconds",
    "30-60 seconds",
    "1-3 minutes",
    "3-10 minutes",
    "10-30 minutes",
    "30-60 minutes",
    "1+ hours",
]
Query = str
QueryParams = Tuple[Any, ...]
class Sessions(BaseQuery):
    def run(self, filter: Filter, team: Team, *args, **kwargs) -> List[Dict[str, Any]]: