## 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/utils.py
if not data:
        return None
    
    with push_scope() as scope:
        scope.set_context("data", data)
    compression = (
        request.GET.get("compression") or request.POST.get("compression") or request.headers.get("content-encoding", "")
    )
    compression = compression.lower()
    if compression == "gzip" or compression == "gzip-js":
        data = gzip.decompress(data)
    if compression == "lz64":
        if isinstance(data, str):
            data = lzstring.LZString().decompressFromBase64(data.replace(" ", "+"))
        else:
            data = lzstring.LZString().decompressFromBase64(data.decode().replace(" ", "+"))
        data = data.encode("utf-16", "surrogatepass").decode("utf-16")
    
    try:
        
        
        
        data = json.loads(data, parse_constant=lambda x: None)
    except json.JSONDecodeError:
        
        data = base64_to_json(data)
    data_res["data"] = data
    
    return data_res
class SingletonDecorator: