better column naming

pull/1147/head
FardinAhsan146 2 months ago
parent 5775880e72
commit f38b1fe9e4

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 76,
"execution_count": 1,
"id": "ca3f397e-5fbb-4f4c-a191-4e6de2cd9d2d",
"metadata": {},
"outputs": [],
@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 2,
"id": "12704164-228c-46d1-a89d-794421d55dcb",
"metadata": {},
"outputs": [
@ -81,7 +81,7 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>OI-842342, length = 73cm, width = 45cm, height...</td>\n",
" <td>OI-842342, length = 73cm, width = 45cm, height = 55cm</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
@ -104,15 +104,15 @@
"</div>"
],
"text/plain": [
" ticket_content\n",
"0 OI-842342, length = 73cm, width = 45cm, height...\n",
"1 #Item-325364, 46x34x56 cm\n",
"2 #OI-43253252, l-45cm,w-34cm,h-67cm\n",
"3 #452453 34inx56cmx2ft\n",
"4 OrderItem#373578 96,56,23 "
" ticket_content\n",
"0 OI-842342, length = 73cm, width = 45cm, height = 55cm\n",
"1 #Item-325364, 46x34x56 cm\n",
"2 #OI-43253252, l-45cm,w-34cm,h-67cm\n",
"3 #452453 34inx56cmx2ft\n",
"4 OrderItem#373578 96,56,23 "
]
},
"execution_count": 4,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
@ -138,7 +138,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": 3,
"id": "ecddfe05-d9e8-4a75-ae4b-ef2fb2914fea",
"metadata": {},
"outputs": [],
@ -207,17 +207,17 @@
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 4,
"id": "0d0adf8d",
"metadata": {},
"outputs": [],
"source": [
"df['parsed_tickets'] = df['ticket_content'].apply(call_and_clean)"
"df['parsed_ticket_content'] = df['ticket_content'].apply(call_and_clean)"
]
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 5,
"id": "64c6899b",
"metadata": {},
"outputs": [
@ -243,7 +243,7 @@
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>ticket_content</th>\n",
" <th>parsed_tickets</th>\n",
" <th>parsed_ticket_content</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
@ -284,7 +284,7 @@
"3 #452453 34inx56cmx2ft \n",
"4 OrderItem#373578 96,56,23 \n",
"\n",
" parsed_tickets \n",
" parsed_ticket_content \n",
"0 {'height': 55, 'height_units': 'cm', 'length': 73, 'length_units': 'cm', 'order_item_id': 842342, 'width': 45, 'width_units': 'cm'} \n",
"1 {'height': 56, 'height_units': 'cm', 'length': 46, 'length_units': 'cm', 'order_item_id': 325364, 'width': 34, 'width_units': 'cm'} \n",
"2 {'height': 67, 'height_units': 'cm', 'length': 45, 'length_units': 'cm', 'order_item_id': 43253252, 'width': 34, 'width_units': 'cm'} \n",
@ -292,7 +292,7 @@
"4 {'height': 23, 'height_units': 'cm', 'length': 96, 'length_units': 'cm', 'order_item_id': 373578, 'width': 56, 'width_units': 'cm'} "
]
},
"execution_count": 83,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}

Loading…
Cancel
Save