Question: I have a JSON file

```
response ={
  "classifier_id": "xxxxx-xx-1",
  "url": "/testers/xxxxx-xx-1",
  "collection": [
    {
      "text": "How hot will it be today?",
      "top_class": "temperature",
      "classes": [
        {
          "class_name": "temperature",
          "confidence": 0.993
        },
        {
          "class_name": "conditions",
          "confidence": 0.006
        }
      ]
    },
    {
      "text": "Is it hot outside?",
      "top_class": "temperature",
      "classes": [
        {
          "class_name": "temperature",
          "confidence": 1.0
        },
        {
          "class_name": "conditions",
          "confidence": 0.0
        }
      ]
    }
  ]
}

```

Current Output
--------------

[![enter image description here](https://i.stack.imgur.com/svfxp.png)](https://i.stack.imgur.com/svfxp.png)

Code and undesired output
-------------------------

[![enter image description here](https://i.stack.imgur.com/sT1yZ.png)](https://i.stack.imgur.com/sT1yZ.png)

I tried `json_normalize`, however, it's giving duplicates.

How can I convert this Jason file to Pandas DataFrame?

The records for each collection should be expanded wide, not long.

![result: DataFrameImage](https://i.stack.imgur.com/cjlSv.jpg)

Answer: 
With cocoapods and Xcode 12, you currently need to set your Pods' deployment targets in a so-called "post-install hook".

Try adding this to the end of your Podfile:

```

deployment_target = '12.0'

post_install do |installer|
    installer.generated_projects.each do |project|
        project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
            end
        end
        project.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
        end
    end
end

```
You need to change minimum deployment target, you can change it from `Xcode` like this (here i changed it to 11, in your case you need to change it to 12):

[![enter image description here](https://i.stack.imgur.com/IA09u.jpg)](https://i.stack.imgur.com/IA09u.jpg)