naked-objects

Converting list containing other lists and dictionaries into a pandas dataframe

試著忘記壹切 提交于 2019-12-11 14:46:55
问题 I would like to convert a list, that appears to be a list of dictionaries (and with other lists inside it) to a pandas dataframe. Here is a sample of my data: ['b"{', 'n boxers: [', 'n {', 'n age: 30,', 'n hasBoutScheduled: true,', 'n id: 489762,', 'n last6: [Array],', "n name: 'Andy Ruiz Jr',", 'n points: 754,', 'n rating: 100,', 'n record: [Object],', 'n residence: [Object],', "n stance: 'orthodox'", 'n },', 'n {', 'n age: 34,', 'n hasBoutScheduled: true,', 'n id: 468841,', 'n last6: [Array