如何将数据帧 (Python) 中的条目的字节转换为字符串?

How to convert bytes into strings for entries in a dataframe (Python)?

我的数据框如下所示。将每个条目转换为常规字符串和浮点数的最快方法是什么?我正在考虑先将数据框转换为字典,然后逐个元素地将 .decode() 应用于每一列。

检查decode

df = df.apply(lambda x : x.str.decode('utf-8'))