Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created June 19, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/bc74559c6d886bcba4a13e3b31b67a12 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/bc74559c6d886bcba4a13e3b31b67a12 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Firstname</th>\n",
" <th>Lastname</th>\n",
" <th>EmpID</th>\n",
" <th>Pay</th>\n",
" <th>Skill</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Indhu</td>\n",
" <td>mathy</td>\n",
" <td>12</td>\n",
" <td>5000</td>\n",
" <td>Python,SQL</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>karthi</td>\n",
" <td>Palani</td>\n",
" <td>15</td>\n",
" <td>10000</td>\n",
" <td>Java,Hadoop</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Sarvesh</td>\n",
" <td>Palani</td>\n",
" <td>21</td>\n",
" <td>15000</td>\n",
" <td>C,Java</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Firstname Lastname EmpID Pay Skill\n",
"0 Indhu mathy 12 5000 Python,SQL\n",
"1 karthi Palani 15 10000 Java,Hadoop\n",
"2 Sarvesh Palani 21 15000 C,Java"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"df=pd.read_csv('C:\\data\\developer.csv')\n",
"df"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>EmpID</th>\n",
" <th>Firstname</th>\n",
" <th>Lastname</th>\n",
" <th>Pay</th>\n",
" <th>Skill</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>12</td>\n",
" <td>Indhu</td>\n",
" <td>mathy</td>\n",
" <td>5000</td>\n",
" <td>Python,SQL</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>15</td>\n",
" <td>Karthi</td>\n",
" <td>Palani</td>\n",
" <td>10000</td>\n",
" <td>Java,Hadoop</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>21</td>\n",
" <td>Sarvesh</td>\n",
" <td>Palani</td>\n",
" <td>15000</td>\n",
" <td>C,Java</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" EmpID Firstname Lastname Pay Skill\n",
"0 12 Indhu mathy 5000 Python,SQL\n",
"1 15 Karthi Palani 10000 Java,Hadoop\n",
"2 21 Sarvesh Palani 15000 C,Java"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df1=pd.read_json('data\\Developer.json')\n",
"df1"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"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.8.1"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment