Skip to content

Instantly share code, notes, and snippets.

@suriyadeepan
Created April 8, 2021 09:19
Show Gist options
  • Save suriyadeepan/e5a93249dfc8ea1b6d0cc86137db46de to your computer and use it in GitHub Desktop.
Save suriyadeepan/e5a93249dfc8ea1b6d0cc86137db46de to your computer and use it in GitHub Desktop.
Overlapping Area
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"r1 = {'areaOccupied': 112800.0,\n",
" 'top': 63.0,\n",
" 'left': -400.0,\n",
" 'bottom': 345.0,\n",
" 'right': 0.0,\n",
" 'height': 282.0,\n",
" 'width': 400.0,\n",
" 'x': -400.0,\n",
" 'y': 63.0}\n",
"r2 = {'areaOccupied': 116100.0,\n",
" 'top': 0.0,\n",
" 'left': 0.0,\n",
" 'bottom': 145.125,\n",
" 'right': 800.0,\n",
" 'height': 145.125,\n",
" 'width': 800.0,\n",
" 'x': 0.0,\n",
" 'y': 0.0}"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment