OB
Size: a a a
OB
OB
OB
MY
OB
MY
AP
YP
OB
AttributeError: 'NoneType' object has no attribute 'text'
😂MY
YP
xml_data = [[row.get('id'), row.find('name').text, row.get('available'), row.find('price').text, (row.find('dimensions') or row.find('price')).text or ''] for row in rows]
row.find('price')
OB
xml_data = [[row.get('id'), row.find('name').text, row.get('available'), row.find('price').text, (row.find('dimensions') or row.find('price')).text or ''] for row in rows]
row.find('price')
OB
YP
OB
YP
AP
AttributeError: 'NoneType' object has no attribute 'text'
😂xml_data = [[
row.get('id') if not pd.isnull(row) else '',
row.find('name').text if not pd.isnull(row) else '',
row.get('available') if not pd.isnull(row) else '',
row.find('price').text if not pd.isnull(row) else '',
row.find('dimensions').text if not pd.isnull(row) else ''
] for row in rows]
OB
xml_data = [[
row.get('id') if not pd.isnull(row) else '',
row.find('name').text if not pd.isnull(row) else '',
row.get('available') if not pd.isnull(row) else '',
row.find('price').text if not pd.isnull(row) else '',
row.find('dimensions').text if not pd.isnull(row) else ''
] for row in rows]
AP
АЛ