skip to Main Content

Python: json_normalize gives AttributeError for list of dict values

I have a pandas dataframe where 2 columns are nested column having decimal value: df.tail(1).to_dict('list') gives this kind of data {'nested_col1': [array([{'key1': 'CO', 'key2': Decimal('8.940000000')}], dtype=object)], 'nested_col2': [array([{'key3': 'CO', 'key4': 'P14', 'key5': Decimal('8.940000000'), 'key6': None}], dtype=object)]} I am trying to…

VIEW QUESTION

psutil error in building python Dockerfile

I built below dockerfile using python image for my python heavy project FROM python:3.11-slim-buster # Update and install system packages RUN apt-get update -y && apt-get install --no-install-recommends -y -q git libpq-dev python-dev && apt-get clean && rm -rf /var/lib/apt/lists/*…

VIEW QUESTION
Back To Top
Search