Skip to content

Instantly share code, notes, and snippets.

@onpillow
Last active May 10, 2018 11:21
Show Gist options
  • Save onpillow/9ae652c049c891809543e6f3fc906530 to your computer and use it in GitHub Desktop.
Save onpillow/9ae652c049c891809543e6f3fc906530 to your computer and use it in GitHub Desktop.
for medium 01_02
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 10866 entries, 0 to 10865\n",
"Data columns (total 21 columns):\n",
"id 10866 non-null int64\n",
"imdb_id 10856 non-null object\n",
"popularity 10866 non-null float64\n",
"budget 10866 non-null int64\n",
"revenue 10866 non-null int64\n",
"original_title 10866 non-null object\n",
"cast 10790 non-null object\n",
"homepage 2936 non-null object\n",
"director 10822 non-null object\n",
"tagline 8042 non-null object\n",
"keywords 9373 non-null object\n",
"overview 10862 non-null object\n",
"runtime 10866 non-null int64\n",
"genres 10843 non-null object\n",
"production_companies 9836 non-null object\n",
"release_date 10866 non-null object\n",
"vote_count 10866 non-null int64\n",
"vote_average 10866 non-null float64\n",
"release_year 10866 non-null int64\n",
"budget_adj 10866 non-null float64\n",
"revenue_adj 10866 non-null float64\n",
"dtypes: float64(4), int64(6), object(11)\n",
"memory usage: 1.3+ MB\n"
]
}
],
"source": [
"#see the column info and null values in the dataset\n",
"df.info()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:py3]",
"language": "python",
"name": "conda-env-py3-py"
},
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment