5292 lines
198 KiB
Plaintext
5292 lines
198 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"# Шпаргалка по pandas"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 2,
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"# Подготовка к работе\n",
|
||
"\n",
|
||
"import pandas as pd\n",
|
||
"import numpy as np\n",
|
||
"anime = pd.read_csv('anime/anime.csv')\n",
|
||
"rating = pd.read_csv('anime/rating.csv')\n"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Импорт данных"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 3,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>9253</td>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>Sci-Fi, Thriller</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>9.17</td>\n",
|
||
" <td>673572</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>9969</td>\n",
|
||
" <td>Gintama&#039;</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.16</td>\n",
|
||
" <td>151266</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>...</th>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12289</th>\n",
|
||
" <td>9316</td>\n",
|
||
" <td>Toushindai My Lover: Minami tai Mecha-Minami</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>4.15</td>\n",
|
||
" <td>211</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12290</th>\n",
|
||
" <td>5543</td>\n",
|
||
" <td>Under World</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>4.28</td>\n",
|
||
" <td>183</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12291</th>\n",
|
||
" <td>5621</td>\n",
|
||
" <td>Violence Gekiga David no Hoshi</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>4</td>\n",
|
||
" <td>4.88</td>\n",
|
||
" <td>219</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12292</th>\n",
|
||
" <td>6133</td>\n",
|
||
" <td>Violence Gekiga Shin David no Hoshi: Inma Dens...</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>4.98</td>\n",
|
||
" <td>175</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12293</th>\n",
|
||
" <td>26081</td>\n",
|
||
" <td>Yasuji no Pornorama: Yacchimae!!</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>5.46</td>\n",
|
||
" <td>142</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"<p>12294 rows × 7 columns</p>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"3 9253 Steins;Gate \n",
|
||
"4 9969 Gintama' \n",
|
||
"... ... ... \n",
|
||
"12289 9316 Toushindai My Lover: Minami tai Mecha-Minami \n",
|
||
"12290 5543 Under World \n",
|
||
"12291 5621 Violence Gekiga David no Hoshi \n",
|
||
"12292 6133 Violence Gekiga Shin David no Hoshi: Inma Dens... \n",
|
||
"12293 26081 Yasuji no Pornorama: Yacchimae!! \n",
|
||
"\n",
|
||
" genre type episodes \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 \n",
|
||
"3 Sci-Fi, Thriller TV 24 \n",
|
||
"4 Action, Comedy, Historical, Parody, Samurai, S... TV 51 \n",
|
||
"... ... ... ... \n",
|
||
"12289 Hentai OVA 1 \n",
|
||
"12290 Hentai OVA 1 \n",
|
||
"12291 Hentai OVA 4 \n",
|
||
"12292 Hentai OVA 1 \n",
|
||
"12293 Hentai Movie 1 \n",
|
||
"\n",
|
||
" rating members \n",
|
||
"0 9.37 200630 \n",
|
||
"1 9.26 793665 \n",
|
||
"2 9.25 114262 \n",
|
||
"3 9.17 673572 \n",
|
||
"4 9.16 151266 \n",
|
||
"... ... ... \n",
|
||
"12289 4.15 211 \n",
|
||
"12290 4.28 183 \n",
|
||
"12291 4.88 219 \n",
|
||
"12292 4.98 175 \n",
|
||
"12293 5.46 142 \n",
|
||
"\n",
|
||
"[12294 rows x 7 columns]"
|
||
]
|
||
},
|
||
"execution_count": 3,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Загрузка CSV-данных\n",
|
||
"\n",
|
||
"anime = pd.read_csv('anime/anime.csv')\n",
|
||
"anime"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 4,
|
||
"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>id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>occupation</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>Bob</td>\n",
|
||
" <td>Builder</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>2</td>\n",
|
||
" <td>Sally</td>\n",
|
||
" <td>Baker</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>3</td>\n",
|
||
" <td>Scott</td>\n",
|
||
" <td>Candle Stick Maker</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" id name occupation\n",
|
||
"0 1 Bob Builder\n",
|
||
"1 2 Sally Baker\n",
|
||
"2 3 Scott Candle Stick Maker"
|
||
]
|
||
},
|
||
"execution_count": 4,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Создание датафрейма из данных, введённых вручную\n",
|
||
"\n",
|
||
"df = pd.DataFrame([[1,'Bob', 'Builder'],\n",
|
||
" [2,'Sally', 'Baker'],\n",
|
||
" [3,'Scott', 'Candle Stick Maker']], \n",
|
||
"columns=['id','name', 'occupation'])\n",
|
||
"df"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 5,
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"# Копирование датафрейма\n",
|
||
"\n",
|
||
"anime_copy = anime.copy(deep=True)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Экспорт данных"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 6,
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"# Экспорт в формат CSV\n",
|
||
"\n",
|
||
"rating[:10].to_csv('saved_ratings.csv', index=False)\n",
|
||
"\n",
|
||
"# Экспортировать данные в виде Excel-файлов можно с помощью функции df.to_excel"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Просмотр и исследование данных"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 7,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"\n",
|
||
" genre type episodes rating \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 9.37 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 9.26 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.25 \n",
|
||
"\n",
|
||
" members \n",
|
||
"0 200630 \n",
|
||
"1 793665 \n",
|
||
"2 114262 "
|
||
]
|
||
},
|
||
"execution_count": 7,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение n записей из начала или конца датафрейма\n",
|
||
"\n",
|
||
"anime.head(3)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 8,
|
||
"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>user_id</th>\n",
|
||
" <th>anime_id</th>\n",
|
||
" <th>rating</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>7813736</th>\n",
|
||
" <td>73516</td>\n",
|
||
" <td>8074</td>\n",
|
||
" <td>9</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" user_id anime_id rating\n",
|
||
"7813736 73516 8074 9"
|
||
]
|
||
},
|
||
"execution_count": 8,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"rating.tail(1)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 9,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"12294"
|
||
]
|
||
},
|
||
"execution_count": 9,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Подсчёт количества строк в датафрейме\n",
|
||
"\n",
|
||
"len(anime)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 10,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"73515"
|
||
]
|
||
},
|
||
"execution_count": 10,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Подсчёт количества уникальных значений в столбце\n",
|
||
"\n",
|
||
"len(rating['user_id'].unique())"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 11,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"<class 'pandas.core.frame.DataFrame'>\n",
|
||
"RangeIndex: 12294 entries, 0 to 12293\n",
|
||
"Data columns (total 7 columns):\n",
|
||
" # Column Non-Null Count Dtype \n",
|
||
"--- ------ -------------- ----- \n",
|
||
" 0 anime_id 12294 non-null int64 \n",
|
||
" 1 name 12294 non-null object \n",
|
||
" 2 genre 12232 non-null object \n",
|
||
" 3 type 12269 non-null object \n",
|
||
" 4 episodes 12294 non-null object \n",
|
||
" 5 rating 12064 non-null float64\n",
|
||
" 6 members 12294 non-null int64 \n",
|
||
"dtypes: float64(1), int64(2), object(4)\n",
|
||
"memory usage: 672.5+ KB\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение сведений о датафрейме\n",
|
||
"\n",
|
||
"anime.info()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 12,
|
||
"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>anime_id</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>count</th>\n",
|
||
" <td>12294.000000</td>\n",
|
||
" <td>12064.000000</td>\n",
|
||
" <td>1.229400e+04</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>mean</th>\n",
|
||
" <td>14058.221653</td>\n",
|
||
" <td>6.473902</td>\n",
|
||
" <td>1.807134e+04</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>std</th>\n",
|
||
" <td>11455.294701</td>\n",
|
||
" <td>1.026746</td>\n",
|
||
" <td>5.482068e+04</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>min</th>\n",
|
||
" <td>1.000000</td>\n",
|
||
" <td>1.670000</td>\n",
|
||
" <td>5.000000e+00</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>25%</th>\n",
|
||
" <td>3484.250000</td>\n",
|
||
" <td>5.880000</td>\n",
|
||
" <td>2.250000e+02</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>50%</th>\n",
|
||
" <td>10260.500000</td>\n",
|
||
" <td>6.570000</td>\n",
|
||
" <td>1.550000e+03</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>75%</th>\n",
|
||
" <td>24794.500000</td>\n",
|
||
" <td>7.180000</td>\n",
|
||
" <td>9.437000e+03</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>max</th>\n",
|
||
" <td>34527.000000</td>\n",
|
||
" <td>10.000000</td>\n",
|
||
" <td>1.013917e+06</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id rating members\n",
|
||
"count 12294.000000 12064.000000 1.229400e+04\n",
|
||
"mean 14058.221653 6.473902 1.807134e+04\n",
|
||
"std 11455.294701 1.026746 5.482068e+04\n",
|
||
"min 1.000000 1.670000 5.000000e+00\n",
|
||
"25% 3484.250000 5.880000 2.250000e+02\n",
|
||
"50% 10260.500000 6.570000 1.550000e+03\n",
|
||
"75% 24794.500000 7.180000 9.437000e+03\n",
|
||
"max 34527.000000 10.000000 1.013917e+06"
|
||
]
|
||
},
|
||
"execution_count": 12,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Вывод статистических сведений о датафрейме\n",
|
||
"\n",
|
||
"anime.describe()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 13,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"type\n",
|
||
"TV 3787\n",
|
||
"OVA 3311\n",
|
||
"Movie 2348\n",
|
||
"Special 1676\n",
|
||
"ONA 659\n",
|
||
"Music 488\n",
|
||
"Name: count, dtype: int64"
|
||
]
|
||
},
|
||
"execution_count": 13,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Подсчёт количества значений\n",
|
||
"\n",
|
||
"anime.type.value_counts()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 14,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"type\n",
|
||
"TV 3787\n",
|
||
"OVA 3311\n",
|
||
"Movie 2348\n",
|
||
"Special 1676\n",
|
||
"ONA 659\n",
|
||
"Music 488\n",
|
||
"Name: count, dtype: int64"
|
||
]
|
||
},
|
||
"execution_count": 14,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"anime.type.value_counts()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Извлечение информации из датафреймов"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 15,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"['Drama, Romance, School, Supernatural',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Magic, Military, Shounen',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Sci-Fi, Thriller',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Drama, School, Shounen, Sports',\n",
|
||
" 'Action, Adventure, Shounen, Super Power',\n",
|
||
" 'Drama, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Drama, Fantasy, Romance, Slice of Life, Supernatural',\n",
|
||
" 'Drama, School, Shounen',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Super Power',\n",
|
||
" 'Comedy, Drama, School, Shounen, Sports',\n",
|
||
" 'Adventure, Drama, Supernatural',\n",
|
||
" 'Drama, Music, Romance, School, Shounen',\n",
|
||
" 'Adventure, Fantasy, Historical, Mystery, Seinen, Slice of Life, Supernatural',\n",
|
||
" 'Fantasy, Slice of Life',\n",
|
||
" 'Action, Mecha, Military, School, Sci-Fi, Super Power',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Action, Drama, Historical, Martial Arts, Romance, Samurai',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Parody, Sci-Fi, Seinen, Super Power, Supernatural',\n",
|
||
" 'Action, Adventure, Fantasy',\n",
|
||
" 'Comedy, Mystery, Romance, School, Sci-Fi, Supernatural',\n",
|
||
" 'Comedy, Mystery, Romance, Supernatural, Vampire',\n",
|
||
" 'Adventure, Fantasy, Historical, Mystery, Seinen, Slice of Life, Supernatural',\n",
|
||
" 'Adventure, Fantasy, Historical, Mystery, Seinen, Slice of Life, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Mecha, Sci-Fi',\n",
|
||
" 'Comedy, Drama, School, Shounen, Slice of Life',\n",
|
||
" 'Drama, Fantasy, Shoujo, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Adventure, Fantasy, Historical, Mystery, Seinen, Slice of Life, Supernatural',\n",
|
||
" 'Drama, Fantasy, Shoujo, Slice of Life, Supernatural',\n",
|
||
" 'Adventure, Drama, Fantasy, Romance',\n",
|
||
" 'Action, Fantasy, Supernatural, Thriller',\n",
|
||
" 'Action, Mystery, Supernatural, Vampire',\n",
|
||
" 'Drama, Horror, Mystery, Police, Psychological, Seinen, Thriller',\n",
|
||
" 'Comedy, Drama, Romance, Shounen',\n",
|
||
" 'Mystery, Police, Psychological, Supernatural, Thriller',\n",
|
||
" 'Comedy, Parody',\n",
|
||
" 'Action, Comedy, School, Shounen',\n",
|
||
" 'Comedy, Drama, School, Shounen, Sports',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Action, Drama, Mystery, Romance, Supernatural, Thriller',\n",
|
||
" 'Drama, Fantasy, Shoujo, Slice of Life, Supernatural',\n",
|
||
" 'Psychological, Seinen, Sports',\n",
|
||
" 'Adventure, Fantasy, Historical, Mystery, Seinen, Slice of Life, Supernatural',\n",
|
||
" 'Mystery, Psychological, Seinen, Supernatural',\n",
|
||
" 'Mystery, Psychological, Romance',\n",
|
||
" 'Fantasy, Sci-Fi, Shounen, Slice of Life',\n",
|
||
" 'Comedy, Demons, Fantasy, Shoujo, Supernatural',\n",
|
||
" 'Drama, Historical, Seinen, Thriller',\n",
|
||
" 'Drama, Fantasy, Psychological, Thriller',\n",
|
||
" 'Action, Mecha, Sci-Fi, Space, Super Power',\n",
|
||
" 'Drama, Fantasy, Shoujo, Slice of Life, Supernatural',\n",
|
||
" 'Drama, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Sci-Fi, Thriller',\n",
|
||
" 'Drama, Romance, Shoujo, Supernatural',\n",
|
||
" 'Ecchi, School, Shounen',\n",
|
||
" 'Comedy, Sports',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Action, Adventure, Drama, Shounen, Supernatural',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Action, Horror, Military, Seinen, Supernatural, Vampire',\n",
|
||
" 'Action, Drama, Horror, Psychological, Sci-Fi, Seinen',\n",
|
||
" 'Drama, Historical, Josei',\n",
|
||
" 'Comedy, Sci-Fi, Seinen, Slice of Life, Space',\n",
|
||
" 'Adventure, Supernatural',\n",
|
||
" 'Drama, Historical',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Comedy, Drama, Romance, Sports',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Action, Mecha, Military, Mystery, Police, Sci-Fi, Seinen',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Shounen, Supernatural',\n",
|
||
" 'Action, Mystery, Romance, Supernatural, Thriller',\n",
|
||
" 'Action, Historical, Military, Seinen',\n",
|
||
" 'Comedy, Drama, School, Shounen, Sports',\n",
|
||
" 'Josei, Slice of Life',\n",
|
||
" 'Military, School',\n",
|
||
" 'Action, Comedy, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Drama, Music, Romance, Shoujo, Slice of Life',\n",
|
||
" 'Action, Comedy, Historical, Mystery, Seinen, Supernatural',\n",
|
||
" 'Adventure, Fantasy, Historical, Mystery, Seinen, Slice of Life, Supernatural',\n",
|
||
" 'Action, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Comedy, Drama, Romance, Shounen',\n",
|
||
" 'Comedy, Drama, Romance, School, Sports',\n",
|
||
" 'Romance, School, Shounen Ai, Slice of Life',\n",
|
||
" 'Action, Mecha, Sci-Fi',\n",
|
||
" 'Drama, Horror, Mystery, Sci-Fi, Supernatural',\n",
|
||
" 'Action, Drama, Military, Sci-Fi, Space',\n",
|
||
" 'Drama, Game, Josei, Slice of Life, Sports',\n",
|
||
" 'Action, Fantasy, Supernatural',\n",
|
||
" 'Action, Adventure, Shounen, Supernatural, Vampire',\n",
|
||
" 'Drama, Magic, Psychological, Thriller',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Action, Police, Psychological, Sci-Fi',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Shounen',\n",
|
||
" 'Drama, Magic, Psychological, Thriller',\n",
|
||
" 'Comedy, Drama, Sports',\n",
|
||
" 'Action, Adventure, Comedy, Historical, Samurai, Shounen',\n",
|
||
" 'Ecchi, School, Shounen',\n",
|
||
" 'Action, Adventure, Historical, Martial Arts, Romance',\n",
|
||
" 'Drama, Magic, Psychological, Thriller',\n",
|
||
" 'Comedy, Drama, Sports',\n",
|
||
" 'Demons, Fantasy, Historical, Horror, Mystery, Seinen, Supernatural',\n",
|
||
" 'Comedy, Drama',\n",
|
||
" 'Drama, Sports',\n",
|
||
" 'Action, Adventure, Shounen, Super Power',\n",
|
||
" 'Action, Adventure, Shounen, Supernatural',\n",
|
||
" 'Drama, Josei, Music, Romance, School',\n",
|
||
" 'Adventure, Comedy, Supernatural',\n",
|
||
" 'Action, Mecha, Military, Police, Sci-Fi, Seinen',\n",
|
||
" 'Adventure, Fantasy',\n",
|
||
" 'Adventure, Comedy, Ecchi, Fantasy, Game, Supernatural',\n",
|
||
" 'Adventure, Drama, Historical, Slice of Life',\n",
|
||
" 'Action, Comedy, Demons, Fantasy, Martial Arts, School, Shounen',\n",
|
||
" 'Action, Adventure, Slice of Life',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Comedy, Drama, Josei, Music, Romance, Slice of Life',\n",
|
||
" 'Adventure, Fantasy, Historical, Romance',\n",
|
||
" 'Action, Fantasy, Shoujo, Supernatural',\n",
|
||
" 'Sci-Fi, Thriller',\n",
|
||
" 'Action, Fantasy, Magic, Shounen, Supernatural',\n",
|
||
" 'Drama, Fantasy',\n",
|
||
" 'Mystery, Supernatural, Vampire',\n",
|
||
" 'Dementia, Drama, Mecha, Psychological, Sci-Fi',\n",
|
||
" 'Comedy, Romance, School, Slice of Life',\n",
|
||
" 'Adventure, Drama, Romance, Sci-Fi',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Romance, Shounen',\n",
|
||
" 'Comedy, Mystery, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Historical, Romance, Samurai',\n",
|
||
" 'Action, Adventure, Historical, Samurai',\n",
|
||
" 'Adventure, Mystery, Police, Shounen',\n",
|
||
" 'Action, Fantasy, Magic, Shounen, Supernatural',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Action, Mecha, Military, Sci-Fi, Shounen, Space',\n",
|
||
" 'Action, Adventure, Ecchi, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Drama, Fantasy, Shoujo, Slice of Life, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen',\n",
|
||
" 'Mystery, Psychological, Supernatural, Thriller',\n",
|
||
" 'Action, Adventure, Shounen, Super Power',\n",
|
||
" 'Action, Adventure, Shounen, Super Power',\n",
|
||
" 'Comedy, Demons, Fantasy, Historical, Mystery, Shounen, Supernatural',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Psychological, Seinen, Sports',\n",
|
||
" 'Comedy, Drama, Music, Shounen, Slice of Life',\n",
|
||
" 'Action, Adventure, Demons, Drama, Fantasy, Horror, Military, Romance, Seinen, Supernatural',\n",
|
||
" 'Action, Drama, Mystery, Sci-Fi, Space',\n",
|
||
" 'Drama, Shounen, Sports',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Drama, Fantasy, Shoujo, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Drama, Psychological, Romance',\n",
|
||
" 'Adventure, Drama, Historical, Romance, Shoujo',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life',\n",
|
||
" 'Action, Comedy, Drama, School, Supernatural',\n",
|
||
" 'Mystery, Romance, Supernatural, Vampire',\n",
|
||
" 'Mystery, Seinen, Supernatural',\n",
|
||
" 'Comedy, Shounen, Sports',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen',\n",
|
||
" 'Comedy, Harem, Romance, School, Shoujo',\n",
|
||
" 'Action, Mystery, Police, Shounen',\n",
|
||
" 'Action, Mystery, Supernatural',\n",
|
||
" 'Comedy, Josei, Music, Romance',\n",
|
||
" 'Drama, Romance, Sci-Fi, Seinen, Space',\n",
|
||
" 'Music, Sci-Fi',\n",
|
||
" 'Adventure, Fantasy, Romance, Sci-Fi',\n",
|
||
" 'Action, Comedy, Historical, Parody, Sci-Fi',\n",
|
||
" 'Drama, Josei, Romance',\n",
|
||
" 'Action, Adventure, Comedy, Demons, Fantasy, Magic, Romance, Shounen, Supernatural',\n",
|
||
" 'Fantasy, Historical',\n",
|
||
" 'Action, Comedy, Shounen, Super Power',\n",
|
||
" 'Comedy, Demons, Fantasy, Historical, Shounen, Supernatural',\n",
|
||
" 'Adventure, Fantasy, Historical, Romance',\n",
|
||
" 'Action, Comedy, School, Shounen, Super Power',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Drama, Sports',\n",
|
||
" 'Action, Adventure, Martial Arts, Shounen, Super Power, Supernatural',\n",
|
||
" 'Comedy, School, Shounen',\n",
|
||
" 'Comedy, Romance, Shounen',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Drama, Psychological, Romance, Slice of Life',\n",
|
||
" 'Fantasy, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Drama, Mystery, Psychological',\n",
|
||
" 'Comedy, Romance, Slice of Life',\n",
|
||
" 'Action, Mecha, Police, Psychological, Sci-Fi, Seinen',\n",
|
||
" 'Comedy, Music, Slice of Life',\n",
|
||
" 'Action, School, Shounen, Sports',\n",
|
||
" 'Action, Comedy, Drama, Magic, Super Power',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Historical, Romance',\n",
|
||
" 'Sci-Fi, Thriller',\n",
|
||
" 'Comedy, Drama, Mystery, Psychological, Supernatural',\n",
|
||
" 'Action, Adventure, Demons, Drama, Fantasy, Horror, Military, Seinen, Supernatural',\n",
|
||
" 'Drama, Game, Mystery, Psychological, Thriller',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Magic, Military, Shounen',\n",
|
||
" 'Game, Psychological, Seinen, Thriller',\n",
|
||
" 'Action, Adventure, Shounen, Super Power',\n",
|
||
" 'Action, Cars, Sci-Fi, Sports',\n",
|
||
" 'Drama, Game, Josei, Slice of Life, Sports',\n",
|
||
" 'Action, Mystery, Police, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Action, Fantasy, Magic, Shounen, Supernatural',\n",
|
||
" 'Drama, Romance, School',\n",
|
||
" 'Adventure, Drama, Fantasy, Romance, Slice of Life',\n",
|
||
" 'Drama, Fantasy, Romance',\n",
|
||
" 'Action, Dementia, Drama, Mecha, Psychological, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen',\n",
|
||
" 'Comedy, Drama',\n",
|
||
" 'Action, Comedy, Sci-Fi',\n",
|
||
" 'Mystery, Supernatural',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Drama, Magic, Psychological, Thriller',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Comedy, Drama, Romance, School',\n",
|
||
" 'Comedy, Romance, School',\n",
|
||
" 'Fantasy, Sci-Fi, Shounen, Slice of Life',\n",
|
||
" 'Action, Seinen',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Harem, Romance, Shounen, Supernatural',\n",
|
||
" 'Comedy, Sci-Fi',\n",
|
||
" 'Action, Comedy, Historical, Mystery, Seinen, Supernatural',\n",
|
||
" 'Action, Mystery, Police, Shounen',\n",
|
||
" 'Game, Psychological, Seinen, Thriller',\n",
|
||
" 'Cars, Seinen, Sports',\n",
|
||
" 'Adventure, Mystery, Romance, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Comedy, School, Shounen, Supernatural',\n",
|
||
" 'Comedy, Drama, Fantasy, Magic, Romance, Shoujo',\n",
|
||
" 'Comedy, Shounen, Sports',\n",
|
||
" 'Comedy, Demons, Fantasy, Romance, Shoujo, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, Shoujo',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Drama, Mystery, Sci-Fi, Supernatural, Thriller',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Magic, Romance',\n",
|
||
" 'Comedy, Josei, Music, Romance, Slice of Life',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Comedy, Parody',\n",
|
||
" 'Comedy, Sci-Fi, Space',\n",
|
||
" 'Drama',\n",
|
||
" 'Comedy, Music',\n",
|
||
" 'Sci-Fi, Slice of Life',\n",
|
||
" 'Sci-Fi, Slice of Life',\n",
|
||
" 'Comedy, Romance, School, Shoujo',\n",
|
||
" 'Adventure, Sci-Fi, Shounen',\n",
|
||
" 'Psychological, Thriller',\n",
|
||
" 'Action, Mystery, Sci-Fi, Super Power',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Magic, Shounen',\n",
|
||
" 'Drama, Music, School',\n",
|
||
" 'Action, Adventure, Drama, Shounen, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, Slice of Life',\n",
|
||
" 'Comedy, School, Seinen, Slice of Life',\n",
|
||
" 'Action, Comedy, Martial Arts, School, Shounen',\n",
|
||
" 'Adventure, Drama, Mecha, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Romance, School',\n",
|
||
" 'Action, Cars, Drama, Seinen, Sports',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Drama, Historical, Romance',\n",
|
||
" 'Action, Historical, Military, Seinen',\n",
|
||
" 'Comedy, Josei, Slice of Life',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Shounen',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Romance, School, Slice of Life',\n",
|
||
" 'Action, Adventure, Martial Arts, Shounen, Super Power, Supernatural',\n",
|
||
" 'Action, Adventure, Fantasy, Historical',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Romance, Shoujo',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Mystery, Supernatural',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Drama, Shoujo',\n",
|
||
" 'Drama, Historical, Mystery, Romance',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Action, Cars, Drama, Seinen, Sports',\n",
|
||
" 'Action, Comedy, School, Super Power',\n",
|
||
" 'Comedy, Romance, Shoujo',\n",
|
||
" 'Dementia, Drama, Horror, Psychological',\n",
|
||
" 'Comedy, Fantasy, Magic, Romance',\n",
|
||
" 'Sci-Fi, Seinen',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Magic, Mystery, Romance, Shounen, Supernatural',\n",
|
||
" 'Drama, Sports',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Magic, Shounen',\n",
|
||
" 'Mecha, Military, Mystery, Police, Sci-Fi, Seinen',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Shounen',\n",
|
||
" 'Drama, Fantasy, Psychological, Shoujo',\n",
|
||
" 'Action, Comedy, Mecha',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Mecha, Sci-Fi',\n",
|
||
" 'Action, Comedy, School',\n",
|
||
" 'Action, Drama, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Drama, Mystery, Supernatural, Thriller',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Comedy, Mystery, Supernatural',\n",
|
||
" 'Comedy, Mystery, Supernatural',\n",
|
||
" 'Action, Comedy, School, Shounen',\n",
|
||
" 'Fantasy, Sci-Fi, Shounen, Slice of Life',\n",
|
||
" 'Romance, School, Shounen, Sports',\n",
|
||
" 'Action, Adventure, Comedy, Shounen',\n",
|
||
" 'Action, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Adventure, Comedy, Shounen',\n",
|
||
" 'Action, Drama, Mecha, Sci-Fi, Space',\n",
|
||
" 'Comedy, Sports',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Historical, Romance',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Drama, Slice of Life, Supernatural',\n",
|
||
" 'Adventure, Comedy, Drama, Mystery, Sci-Fi',\n",
|
||
" 'Adventure, Drama, Mecha, Romance, Sci-Fi',\n",
|
||
" 'Action, Mecha, Mystery, Police, Psychological, Sci-Fi, Seinen',\n",
|
||
" 'Action, Comedy, Parody, Samurai',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Comedy, Game, Shounen, Supernatural',\n",
|
||
" 'Romance, School, Shoujo, Slice of Life',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life, Supernatural',\n",
|
||
" 'Drama',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Magic, Romance, School, Shoujo',\n",
|
||
" 'Drama, Mystery, Romance, Supernatural',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Comedy, Drama, Josei, Romance',\n",
|
||
" 'Comedy, Drama, Romance, Shoujo',\n",
|
||
" 'Music, School, Slice of Life',\n",
|
||
" 'Fantasy, Magic',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Comedy, Romance, Slice of Life',\n",
|
||
" 'Action, Seinen',\n",
|
||
" 'Action, Mystery, Police, Shounen',\n",
|
||
" 'Action, Fantasy, Super Power',\n",
|
||
" 'Horror, Mystery, Psychological, Supernatural, Thriller',\n",
|
||
" 'Mystery, School, Slice of Life',\n",
|
||
" 'Adventure, Drama, Music, Sci-Fi',\n",
|
||
" 'Drama, Romance, Slice of Life, Supernatural',\n",
|
||
" 'Romance, School, Shoujo, Slice of Life',\n",
|
||
" 'Action, Adventure, Shounen, Supernatural',\n",
|
||
" 'Action, Fantasy, Seinen, Supernatural',\n",
|
||
" 'Comedy, Drama, Mystery, Psychological, Supernatural',\n",
|
||
" 'Action, Drama, Fantasy, Magic, Mystery, Psychological, Shounen',\n",
|
||
" 'Comedy, Shounen, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Fantasy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Comedy, Drama, Slice of Life, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Supernatural',\n",
|
||
" 'Action, Shounen, Sports',\n",
|
||
" 'Adventure, Drama, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Shounen, Super Power',\n",
|
||
" 'Action, Drama, Seinen, Thriller',\n",
|
||
" 'Comedy, Romance, Slice of Life',\n",
|
||
" 'Action, Sci-Fi, Super Power',\n",
|
||
" 'Drama, Romance, School, Shounen, Slice of Life, Sports',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Action, Adventure, Horror, Military, Sci-Fi, Supernatural',\n",
|
||
" 'Action, Seinen',\n",
|
||
" 'Action, Mystery, Supernatural',\n",
|
||
" 'Action, Comedy, Historical, Parody, Samurai, Shounen',\n",
|
||
" 'School, Slice of Life, Sports',\n",
|
||
" 'Comedy, Shounen',\n",
|
||
" 'Action, Demons, Shounen, Supernatural',\n",
|
||
" 'Fantasy, Horror, Mystery, Psychological, Sci-Fi, Thriller',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Comedy, Romance, School, Shounen',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Drama, Fantasy, Romance, Shoujo',\n",
|
||
" 'Drama, Romance, School, Slice of Life',\n",
|
||
" 'Action, Adventure, Drama, Shounen',\n",
|
||
" 'Action, Cars, Drama, Seinen, Sports',\n",
|
||
" 'Comedy, Music, School, Slice of Life',\n",
|
||
" 'Action, Adventure, Fantasy, Game, Magic, Shounen',\n",
|
||
" 'Comedy, Romance, Shounen Ai',\n",
|
||
" 'Adventure, Comedy, Demons, Fantasy, Magic',\n",
|
||
" 'Fantasy, Sci-Fi, Shounen, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Drama',\n",
|
||
" 'Action, Comedy, Historical, Mecha, Parody, Samurai, Sci-Fi, Shounen',\n",
|
||
" 'Adventure, Comedy, Romance, Shounen',\n",
|
||
" 'Comedy, Demons, Fantasy, Romance, Shoujo, Supernatural',\n",
|
||
" 'Drama, Mystery, Seinen, Supernatural',\n",
|
||
" 'Adventure, Drama, Mecha, Military, Romance, Sci-Fi',\n",
|
||
" 'Action, Adventure, Fantasy, Kids',\n",
|
||
" 'Comedy, Demons, Shounen, Supernatural',\n",
|
||
" 'Adventure, Drama, Psychological, Sci-Fi, Supernatural',\n",
|
||
" 'Action, Horror, Mystery, Seinen, Supernatural',\n",
|
||
" 'Action, Sci-Fi, Seinen',\n",
|
||
" 'Action, Comedy, Mystery, Shounen',\n",
|
||
" 'Action, Mystery, Supernatural',\n",
|
||
" 'Drama, Mystery, Romance',\n",
|
||
" 'Action, Mecha, Police, Psychological, Sci-Fi, Seinen',\n",
|
||
" 'Action, Mecha, Sci-Fi',\n",
|
||
" 'Adventure, Romance, Sci-Fi, Shounen, Space',\n",
|
||
" 'Action, Cars, Drama, Seinen, Sports',\n",
|
||
" 'Comedy, Harem, Romance, Shounen, Supernatural',\n",
|
||
" 'Action, Adventure, Shounen',\n",
|
||
" 'Comedy, Kids, Sci-Fi, Shounen',\n",
|
||
" 'Action, Comedy, Mystery, Super Power',\n",
|
||
" 'Comedy, Drama, Romance, School',\n",
|
||
" 'Adventure, Drama, Fantasy, Magic, Military, Shounen',\n",
|
||
" 'Comedy, Mystery, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, School, Shounen, Slice of Life',\n",
|
||
" 'Comedy, Sports',\n",
|
||
" 'Comedy, Romance, Shoujo',\n",
|
||
" 'Comedy, Drama, Slice of Life',\n",
|
||
" 'Action, Adventure, Psychological, Supernatural',\n",
|
||
" 'Comedy, Romance',\n",
|
||
" 'Comedy, Drama, Mystery, Psychological, Supernatural',\n",
|
||
" 'Drama, Romance, Slice of Life',\n",
|
||
" 'Action, Horror, Mystery, Psychological',\n",
|
||
" 'Drama, Military, Sci-Fi, Space',\n",
|
||
" 'Historical, Samurai, Seinen',\n",
|
||
" 'Fantasy',\n",
|
||
" 'Action, Comedy, Drama, Magic, Super Power',\n",
|
||
" 'Drama, Historical, Romance, Samurai, Shounen',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Action, Adventure, Demons, Drama, Fantasy, Horror, Military, Seinen, Supernatural',\n",
|
||
" 'Action, Mystery, Sci-Fi, Super Power',\n",
|
||
" 'Action, Fantasy',\n",
|
||
" 'Action, Historical, Military, Sci-Fi, Space',\n",
|
||
" 'Game, Shounen',\n",
|
||
" 'Drama, Historical, Romance, Sci-Fi, Shounen Ai',\n",
|
||
" 'Action, Comedy, Ecchi, Fantasy, Harem, Mecha, School',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Comedy, Drama, Fantasy',\n",
|
||
" 'Comedy, Drama, Psychological, Seinen',\n",
|
||
" 'Action, Mecha, Military, Music, Romance, Sci-Fi, Space',\n",
|
||
" 'Adventure, Comedy, Fantasy, Shounen',\n",
|
||
" 'Action, Comedy, Shounen, Sports',\n",
|
||
" 'Action, Comedy, Sports',\n",
|
||
" 'Action, Comedy, Shounen, Sports',\n",
|
||
" 'Comedy, Drama, Music, Romance, Shoujo, Supernatural',\n",
|
||
" 'Drama, Harem, Psychological, Romance',\n",
|
||
" 'Horror, Mystery, Psychological, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, Shounen Ai',\n",
|
||
" 'Comedy, Drama, Mystery, Psychological',\n",
|
||
" 'Comedy, School, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Action, Comedy, Sci-Fi',\n",
|
||
" 'Drama, Fantasy, Mystery, Psychological, Slice of Life',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Action, Mecha, Military, Music, Romance, Sci-Fi, Space',\n",
|
||
" 'Action, Mystery, Psychological, Shounen, Supernatural, Thriller',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Shoujo',\n",
|
||
" 'Comedy, Parody, Seinen, Super Power',\n",
|
||
" 'Action, Drama, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Drama, Horror, Mystery, Psychological, Seinen, Supernatural',\n",
|
||
" 'Josei, Slice of Life',\n",
|
||
" 'Kids, School, Shoujo',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Drama, Slice of Life, Supernatural',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Historical, Samurai, Seinen',\n",
|
||
" 'Action, Comedy, Dementia, Mecha, Parody, Sci-Fi',\n",
|
||
" 'Action, Mecha, Military',\n",
|
||
" 'Action, Comedy, Demons, Fantasy, Historical, Shounen, Supernatural',\n",
|
||
" 'Music, School, Slice of Life',\n",
|
||
" 'Action, Mecha, Military, Music, Romance, Sci-Fi, Space',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Shounen',\n",
|
||
" 'Comedy, Romance, Supernatural',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Historical, Romance',\n",
|
||
" 'Comedy, Romance, School, Shounen',\n",
|
||
" 'Action, Ecchi, Fantasy, School, Shounen, Supernatural, Vampire',\n",
|
||
" 'Comedy, Mystery, Parody, School, Sci-Fi, Slice of Life',\n",
|
||
" 'Drama, Historical',\n",
|
||
" 'Adventure, Comedy, Ecchi',\n",
|
||
" 'Drama',\n",
|
||
" 'Comedy, Drama, Fantasy, Shoujo',\n",
|
||
" 'Action, Mystery, Supernatural, Thriller',\n",
|
||
" 'Action, Comedy, Mystery, Shounen',\n",
|
||
" 'Comedy, School, Seinen, Slice of Life',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Comedy, Shounen',\n",
|
||
" 'Action, Comedy, Demons, School, Shounen, Supernatural',\n",
|
||
" 'Drama, Game, Mystery, Psychological, Thriller',\n",
|
||
" 'Action, Comedy, Supernatural',\n",
|
||
" 'Action, Adventure, Seinen',\n",
|
||
" 'Action, Comedy, Drama, Magic, Super Power',\n",
|
||
" 'Action, Adventure, Fantasy, Game, Magic, Supernatural',\n",
|
||
" 'Action, Comedy, School, Shounen, Sports',\n",
|
||
" 'Adventure, Drama, Historical, Mystery',\n",
|
||
" 'Comedy, Drama, Mystery, Psychological, Supernatural',\n",
|
||
" 'Comedy, School, Shoujo Ai, Slice of Life',\n",
|
||
" 'Action, Comedy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Historical, Romance, School, Shoujo',\n",
|
||
" 'Drama, Historical, Romance, Seinen, Slice of Life',\n",
|
||
" 'Mystery, Psychological, Sci-Fi',\n",
|
||
" 'Comedy, Drama, Seinen, Slice of Life',\n",
|
||
" 'Comedy, Demons, Fantasy, Romance, Shounen',\n",
|
||
" 'Drama, Music, School',\n",
|
||
" 'Action, Comedy, Drama, Mystery, Romance, Sci-Fi, Thriller',\n",
|
||
" 'Adventure, Drama, Historical, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Fantasy, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Historical, Military, Romance',\n",
|
||
" 'Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Comedy, Ecchi, Romance, School, Seinen',\n",
|
||
" 'Adventure, Fantasy, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Parody, School',\n",
|
||
" 'Comedy, Parody, Romance, School',\n",
|
||
" 'Comedy, Parody, School',\n",
|
||
" 'Comedy, Drama, Shoujo',\n",
|
||
" 'Drama, Romance, School',\n",
|
||
" 'Action, Drama, Historical, Josei, Samurai, Supernatural',\n",
|
||
" 'Action, Mystery, Romance, Supernatural, Thriller',\n",
|
||
" 'Action, Mecha, Military, Music, Romance, Sci-Fi, Space',\n",
|
||
" 'Adventure, Comedy, Romance, Shounen',\n",
|
||
" 'Comedy, School, Shounen',\n",
|
||
" 'Action, Comedy, Martial Arts, School, Shounen',\n",
|
||
" 'Game, Psychological, Seinen, Thriller',\n",
|
||
" 'Comedy, Parody, Supernatural',\n",
|
||
" 'Action, Demons, Shounen, Super Power',\n",
|
||
" 'Romance, Slice of Life',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life, Supernatural',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Shoujo',\n",
|
||
" 'Comedy, Josei, Slice of Life',\n",
|
||
" 'Action, Comedy, Mystery, Super Power',\n",
|
||
" 'Comedy, Parody, School',\n",
|
||
" 'Action, Comedy, Mystery, Shounen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Comedy, Romance, School',\n",
|
||
" 'Action, Mecha, Sci-Fi, Shounen, Super Power',\n",
|
||
" 'Comedy, Historical, Parody',\n",
|
||
" 'Comedy, Drama, Shoujo',\n",
|
||
" 'Comedy, Demons, Fantasy, Shoujo, Supernatural',\n",
|
||
" 'Adventure, Comedy, Fantasy, Magic, School',\n",
|
||
" 'Drama, School, Shoujo Ai, Slice of Life',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Music',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Magic, Romance, Shoujo',\n",
|
||
" 'Action, Fantasy, Mecha, Military, Shounen',\n",
|
||
" 'Comedy, Drama, Slice of Life',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Action, Drama, Martial Arts, Sci-Fi, Shounen',\n",
|
||
" 'Drama, Historical, Shoujo, Slice of Life',\n",
|
||
" 'Dementia, Drama, Mystery, Psychological, Sci-Fi, Supernatural',\n",
|
||
" 'Mystery, Supernatural, Thriller, Vampire',\n",
|
||
" 'Drama, Historical',\n",
|
||
" 'Comedy, Romance, School, Super Power',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Mecha, Sci-Fi',\n",
|
||
" 'Comedy, Historical, Parody',\n",
|
||
" 'Action, Cars, Drama, Seinen, Sports',\n",
|
||
" 'Comedy, Sports',\n",
|
||
" 'Adventure, Drama, Fantasy',\n",
|
||
" 'Action, Adventure, Comedy, Sci-Fi, Space',\n",
|
||
" 'Drama, Music, Romance, Slice of Life',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Action, Adventure, Fantasy, Military',\n",
|
||
" 'Action, Adventure, Fantasy, Military',\n",
|
||
" 'Comedy, Horror, Mystery, Shoujo, Supernatural',\n",
|
||
" 'Action, Drama, Sci-Fi, Seinen, Super Power',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Comedy, Sports',\n",
|
||
" 'Adventure, Comedy, Fantasy, Romance, Shoujo',\n",
|
||
" 'Action, Adventure, Comedy, Shounen',\n",
|
||
" 'Adventure, Drama, Fantasy, Kids',\n",
|
||
" 'School, Shoujo, Shoujo Ai, Slice of Life',\n",
|
||
" 'Comedy, Military, Parody, Sci-Fi, Space',\n",
|
||
" 'Fantasy, Historical, Romance',\n",
|
||
" 'Action, Adventure, Demons, Fantasy, Sci-Fi, Shounen, Super Power',\n",
|
||
" 'Comedy, Seinen, Slice of Life',\n",
|
||
" 'Action, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Drama, Mecha, Military, Sci-Fi, Shounen, Space',\n",
|
||
" 'Action, Comedy, Military, Romance',\n",
|
||
" 'Comedy, Drama, Fantasy, Slice of Life',\n",
|
||
" 'Romance, School, Shounen, Sports',\n",
|
||
" 'Action, Mecha, Military, Shounen',\n",
|
||
" 'Action, Mecha, Military, Super Power',\n",
|
||
" 'Comedy, Parody, School',\n",
|
||
" 'Action, Adventure, Seinen',\n",
|
||
" 'Mystery, Shounen',\n",
|
||
" 'Action, Drama, Mecha, Sci-Fi, Space',\n",
|
||
" 'Action, Mecha, Shounen, Super Power',\n",
|
||
" 'Comedy, Parody, Seinen, Super Power',\n",
|
||
" 'Adventure, Mecha, Sci-Fi, Shounen',\n",
|
||
" 'Action, Comedy, Shounen, Super Power, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life',\n",
|
||
" 'Action, Comedy, Mystery, Shounen',\n",
|
||
" 'Action, Horror, Mystery, Psychological',\n",
|
||
" 'Adventure, Mystery',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Comedy, Historical, Parody',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Comedy, Harem, Romance, Shounen, Supernatural',\n",
|
||
" 'Action, Fantasy, Supernatural',\n",
|
||
" 'Adventure, Comedy, Romance, Shounen',\n",
|
||
" 'Action, Adventure, Fantasy, Military',\n",
|
||
" 'Drama, Romance, Sci-Fi',\n",
|
||
" 'Action, Military, Police, Sci-Fi',\n",
|
||
" 'Comedy, Parody, Romance, School',\n",
|
||
" 'Action, Mecha, Sci-Fi, Seinen, Space',\n",
|
||
" 'Adventure, Comedy, Fantasy, Kids, Slice of Life',\n",
|
||
" 'Horror, Mystery, Romance, School, Shounen, Supernatural',\n",
|
||
" 'Action, Drama, Fantasy, Horror, Romance, Sci-Fi, Vampire',\n",
|
||
" 'Comedy, Shoujo Ai, Slice of Life',\n",
|
||
" 'Action, Fantasy, Mecha, Military, Shounen',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Fantasy, Super Power',\n",
|
||
" 'Comedy, School, Slice of Life, Sports',\n",
|
||
" 'Action, Drama, Historical, Josei, Samurai, Supernatural',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Action, Super Power, Supernatural',\n",
|
||
" 'Action, Adventure, Sci-Fi',\n",
|
||
" 'Comedy, Drama, Romance, School, Slice of Life, Supernatural',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Kids',\n",
|
||
" 'Comedy, School, Shoujo Ai, Slice of Life',\n",
|
||
" 'Comedy, Parody, School',\n",
|
||
" 'Drama, Game, Seinen, Slice of Life',\n",
|
||
" 'Action, Drama, Historical',\n",
|
||
" 'Drama, Fantasy, Romance, Shoujo',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Historical, Samurai, Seinen',\n",
|
||
" 'Adventure, Fantasy',\n",
|
||
" 'Mecha, Military, Police, Psychological, Sci-Fi',\n",
|
||
" 'Comedy, Drama, School, Shounen, Sports',\n",
|
||
" 'Shounen, Sports',\n",
|
||
" 'Comedy, Fantasy, Supernatural',\n",
|
||
" 'Comedy, Sci-Fi, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Shounen',\n",
|
||
" 'Action, Mecha, Military, Music, Romance, Sci-Fi, Space',\n",
|
||
" 'Action, Drama, Mecha, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Comedy, Josei, Music, Romance',\n",
|
||
" 'Comedy, Drama, Josei, Romance, Slice of Life',\n",
|
||
" 'Adventure, Sci-Fi, Shounen',\n",
|
||
" 'Historical, Samurai, Seinen',\n",
|
||
" 'Horror, Mystery, Supernatural, Vampire',\n",
|
||
" 'Adventure, Comedy, Demons, Fantasy, Magic, Shounen',\n",
|
||
" 'Comedy, Ecchi, Harem, Romance, School, Sci-Fi, Shounen',\n",
|
||
" 'Action, Mecha',\n",
|
||
" 'Action, Drama, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Mystery, Sci-Fi',\n",
|
||
" 'Action, Comedy, Fantasy, Shoujo',\n",
|
||
" 'Action, Demons, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Action, Adventure, Demons, Fantasy, Shounen, Super Power, Supernatural',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Mecha, Military, Mystery, Police, Sci-Fi, Seinen',\n",
|
||
" 'Comedy, Romance, Seinen',\n",
|
||
" 'Drama, Historical',\n",
|
||
" 'Action, Comedy, Harem, Parody, Romance',\n",
|
||
" 'Comedy, Fantasy, Seinen',\n",
|
||
" 'Music',\n",
|
||
" 'Adventure, Comedy, Fantasy, Magic, School',\n",
|
||
" 'Comedy, Parody, School, Slice of Life',\n",
|
||
" 'Action, Cars, Seinen, Sports',\n",
|
||
" 'Adventure, Fantasy, Mystery, Shounen, Supernatural',\n",
|
||
" 'Historical, Romance',\n",
|
||
" 'Action, Adventure, Demons, Fantasy, Military, Seinen, Supernatural',\n",
|
||
" 'Cars, Shounen, Sports',\n",
|
||
" 'Drama, School, Super Power',\n",
|
||
" 'Action, Comedy, Mystery, Shounen',\n",
|
||
" 'Adventure, Drama, Fantasy',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Seinen',\n",
|
||
" 'Adventure, Mystery',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Comedy, Harem, Romance, School, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Kids',\n",
|
||
" 'Comedy, Ecchi, Harem, Romance, School, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Harem, Mystery, Romance, School, Shounen, Supernatural',\n",
|
||
" 'Drama, Historical, Psychological, Seinen, Thriller',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy',\n",
|
||
" 'Comedy, Romance, School, Slice of Life',\n",
|
||
" 'Comedy, Kids, Slice of Life',\n",
|
||
" 'Drama, Mecha, Sci-Fi, Space',\n",
|
||
" 'Adventure, Drama, Sci-Fi, Space',\n",
|
||
" 'Drama, Romance, School, Shoujo',\n",
|
||
" 'Drama, Romance, Shoujo',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Adventure, Drama, Historical, Kids, Slice of Life',\n",
|
||
" 'Action, Adventure',\n",
|
||
" 'Cars, Seinen, Sports',\n",
|
||
" 'Action, Fantasy, Seinen, Supernatural',\n",
|
||
" 'Comedy, Martial Arts, School, Shounen',\n",
|
||
" 'Adventure, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, School, Shoujo, Slice of Life',\n",
|
||
" 'Drama, Magic, Romance, Shoujo',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Kids',\n",
|
||
" 'Drama, Music, Romance, Slice of Life',\n",
|
||
" 'Action, Comedy, Fantasy, Magic, School, Shoujo, Slice of Life',\n",
|
||
" 'Action, Adventure, Comedy, Demons, Fantasy, Magic, Romance, Shounen, Supernatural',\n",
|
||
" 'Adventure, Comedy, Demons, Fantasy, Magic, Romance, Shounen, Supernatural',\n",
|
||
" 'Adventure, Comedy, Demons, Drama, Fantasy, Historical, Romance, Shounen, Supernatural',\n",
|
||
" 'Comedy, Music, School, Slice of Life',\n",
|
||
" 'Drama, Military, Romance, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Mystery, Shounen',\n",
|
||
" 'Action, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Adventure, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Adventure, Shounen',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Romance, Sci-Fi',\n",
|
||
" 'Comedy, Shoujo',\n",
|
||
" 'Horror, Mystery, School, Supernatural, Thriller',\n",
|
||
" 'Action, Comedy, School, Shounen',\n",
|
||
" 'Action, Demons, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Action, Adventure, Drama, Fantasy, Historical, Shounen',\n",
|
||
" 'Comedy, Parody, Shounen, Supernatural',\n",
|
||
" 'Drama',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Romance',\n",
|
||
" 'Action, Mystery, Supernatural',\n",
|
||
" 'Comedy, Historical, Parody',\n",
|
||
" 'Comedy, Music, School, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Demons, Fantasy, Shoujo',\n",
|
||
" 'Fantasy, Slice of Life, Supernatural',\n",
|
||
" 'Adventure, Comedy, Dementia, Psychological, Romance',\n",
|
||
" 'Drama, School, Shoujo, Shoujo Ai',\n",
|
||
" 'Comedy',\n",
|
||
" 'Action, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Comedy, Drama, Slice of Life',\n",
|
||
" 'Action, Martial Arts, Romance, Shounen, Super Power',\n",
|
||
" 'Adventure, Comedy, Drama, Shounen, Supernatural',\n",
|
||
" 'Action, Mecha, Military',\n",
|
||
" 'Action, Horror, Mystery, Psychological',\n",
|
||
" 'Action, Adventure, Drama, Fantasy',\n",
|
||
" 'Action, Comedy, Demons, Ecchi, Harem, Romance, School',\n",
|
||
" 'Comedy, Romance',\n",
|
||
" 'Drama, Military, Police, Psychological, Romance',\n",
|
||
" 'Comedy, Music, School, Slice of Life',\n",
|
||
" 'Adventure, Drama, Fantasy',\n",
|
||
" 'Comedy, Parody, School, Slice of Life',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Adventure, Comedy, Drama, Music, School, Seinen',\n",
|
||
" 'Comedy, Fantasy, Martial Arts, Slice of Life',\n",
|
||
" 'Comedy, Martial Arts, Romance, Shounen',\n",
|
||
" 'Action, Mecha, Sci-Fi, Seinen, Space',\n",
|
||
" 'Adventure, Comedy, Demons, Fantasy, Magic',\n",
|
||
" 'Comedy, Drama, Ecchi, Harem, Romance, Sci-Fi, Shounen, Supernatural',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Comedy, Drama, Mystery, Police, Shounen',\n",
|
||
" 'Action, Sci-Fi, Super Power',\n",
|
||
" 'Action, Adventure, Drama, Sci-Fi, Seinen, Space',\n",
|
||
" 'Comedy, Historical, Romance, School, Shoujo, Slice of Life',\n",
|
||
" 'Action, Fantasy, Mecha, Military, Shounen',\n",
|
||
" 'Comedy, Shoujo, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen, Sports',\n",
|
||
" 'Comedy, Parody, Slice of Life',\n",
|
||
" 'Drama, Historical',\n",
|
||
" 'Action, Horror, Military, Seinen, Super Power, Supernatural, Vampire',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Action, Mecha, Military, Music, Sci-Fi, Space',\n",
|
||
" 'Comedy, School, Seinen, Slice of Life',\n",
|
||
" 'Action, Demons, Shounen, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Shounen, Super Power',\n",
|
||
" 'Action, Comedy, Parody, Sci-Fi, Seinen, Super Power, Supernatural',\n",
|
||
" 'Action, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Comedy, Ecchi, Harem, Romance, Sci-Fi, Shounen, Supernatural',\n",
|
||
" 'Comedy, Sci-Fi, Space',\n",
|
||
" 'Comedy, Romance, Seinen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Drama, Horror, Psychological, Romance, Seinen, Supernatural',\n",
|
||
" 'Comedy, Drama, Josei, Romance, Slice of Life',\n",
|
||
" 'Drama',\n",
|
||
" 'Comedy, Harem, Romance, Shounen, Supernatural',\n",
|
||
" 'Comedy, Drama, Romance, School, Shounen, Slice of Life',\n",
|
||
" 'Action, Adventure, Ecchi, Magic, Shounen, Supernatural',\n",
|
||
" 'Drama, Romance, School, Shoujo, Shoujo Ai',\n",
|
||
" 'Adventure, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Comedy, Fantasy, Supernatural',\n",
|
||
" 'Action, Adventure, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Action, Comedy, Parody, Sci-Fi, Seinen, Super Power, Supernatural',\n",
|
||
" 'Drama, Fantasy, Historical, Romance',\n",
|
||
" 'Comedy, Romance, School, Shounen',\n",
|
||
" 'Comedy, Drama, Slice of Life',\n",
|
||
" 'Action, Horror, Mystery, Seinen, Supernatural',\n",
|
||
" 'Action, Adventure, Fantasy',\n",
|
||
" 'Music, Sci-Fi',\n",
|
||
" 'Action, Adventure, Horror, Mecha, Psychological, Sci-Fi, Shounen',\n",
|
||
" 'Mystery, Police, Psychological, Supernatural, Thriller',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Action, Demons, Drama, Fantasy, Historical, Josei',\n",
|
||
" 'Comedy, Fantasy, Supernatural',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Drama, Horror, Psychological, Sci-Fi',\n",
|
||
" 'Action, Adventure, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Action, Drama, Shounen, Supernatural, Vampire',\n",
|
||
" 'Action, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Comedy, School, Shounen, Slice of Life',\n",
|
||
" 'Action, Adventure, Sci-Fi, Space',\n",
|
||
" 'Action, Magic, Sci-Fi, Super Power',\n",
|
||
" 'Comedy, Sci-Fi, Slice of Life, Sports',\n",
|
||
" 'Comedy, Drama, Shounen, Sports',\n",
|
||
" 'Comedy, Shoujo Ai, Slice of Life',\n",
|
||
" 'Comedy, Romance, School, Super Power',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Shounen',\n",
|
||
" 'Comedy, Ecchi, Fantasy, Magic, Shounen',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Action',\n",
|
||
" 'Drama, Mecha, Mystery, Police, Sci-Fi',\n",
|
||
" 'Action, Fantasy, Seinen, Supernatural',\n",
|
||
" 'Action, Comedy, Drama, Magic, Seinen',\n",
|
||
" 'Action, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Shounen, Supernatural',\n",
|
||
" 'Action, Adventure, Fantasy, Game, Romance',\n",
|
||
" 'Action, Comedy, Sci-Fi',\n",
|
||
" 'Demons, Magic, Romance, Shoujo',\n",
|
||
" 'Drama, Mecha, Psychological, Sci-Fi',\n",
|
||
" 'Action, Military, Sci-Fi',\n",
|
||
" 'Action, Mecha, Military, Shounen',\n",
|
||
" 'Adventure, Comedy, Kids, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Drama, Fantasy, Shounen',\n",
|
||
" 'Action, Fantasy, Shoujo, Supernatural',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Action, Super Power, Supernatural',\n",
|
||
" 'Action, Comedy, School, Super Power',\n",
|
||
" 'Comedy, Police, Slice of Life',\n",
|
||
" 'Drama, Mecha, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Action, Adventure, Mecha, Military, Romance, Sci-Fi, Space',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Action, Fantasy, Shounen, Super Power',\n",
|
||
" 'Comedy, Ecchi, Harem, Romance, School, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Ecchi, Harem, Romance, School, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Shoujo, Slice of Life',\n",
|
||
" 'Comedy, Sci-Fi, Shoujo',\n",
|
||
" 'Adventure, Comedy, Kids, Sci-Fi',\n",
|
||
" 'Drama, Historical, Romance, Seinen, Slice of Life',\n",
|
||
" 'Action, Comedy, Mecha, Military, Sci-Fi',\n",
|
||
" 'Action, Drama, Sci-Fi, Super Power',\n",
|
||
" 'Adventure, Fantasy, Romance',\n",
|
||
" 'Adventure, Drama, Fantasy, Military, Sci-Fi',\n",
|
||
" 'Mystery, Psychological, Supernatural',\n",
|
||
" 'Action, Mystery, Supernatural, Thriller',\n",
|
||
" 'Comedy, Drama, Romance, Shounen, Slice of Life',\n",
|
||
" 'Comedy, Fantasy',\n",
|
||
" 'Action, Drama, Mystery, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Ecchi, Samurai, Seinen',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Martial Arts, Shounen, Super Power',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Music, Shounen',\n",
|
||
" 'Action, Comedy, Mecha, Sci-Fi, Space',\n",
|
||
" 'Comedy, School, Super Power',\n",
|
||
" 'Action, Drama, Horror, Military, Mystery, Supernatural, Vampire',\n",
|
||
" 'Action, Demons, Historical, Romance, Supernatural',\n",
|
||
" 'Comedy, Sports',\n",
|
||
" 'Comedy, Drama, Fantasy, Romance, Shoujo, Slice of Life',\n",
|
||
" 'Comedy, Magic, School, Shoujo',\n",
|
||
" 'Comedy, Drama, School, Shounen, Sports',\n",
|
||
" 'Drama, School, Slice of Life',\n",
|
||
" 'Comedy, Romance, Supernatural',\n",
|
||
" 'Drama, Historical, Shoujo, Slice of Life',\n",
|
||
" 'Adventure, Fantasy, Romance, Shoujo',\n",
|
||
" 'Adventure, Fantasy, Mecha, Romance, Shoujo',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Comedy, Ecchi, Harem, Romance, School, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, School, Shounen, Super Power, Supernatural',\n",
|
||
" 'Music, School, Shoujo, Slice of Life',\n",
|
||
" 'Action, Comedy, School, Supernatural',\n",
|
||
" 'Fantasy, Sci-Fi, Shounen, Slice of Life',\n",
|
||
" 'Action, Fantasy, Mecha, Military, Shounen',\n",
|
||
" 'Comedy, Ecchi, Kids, School, Shounen, Slice of Life',\n",
|
||
" 'Mystery, School, Thriller',\n",
|
||
" 'Adventure, Comedy, Demons, Fantasy, Magic, Martial Arts, Shounen',\n",
|
||
" 'Comedy, Mystery, Romance',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Comedy, Shounen, Supernatural',\n",
|
||
" 'Horror, Mystery, Psychological, Supernatural',\n",
|
||
" 'Cars, Seinen, Sports',\n",
|
||
" 'Historical, Romance, Shounen',\n",
|
||
" 'Action, Comedy, Ecchi, Parody, Supernatural',\n",
|
||
" 'Comedy, Seinen, Slice of Life',\n",
|
||
" 'Music, Shoujo, Slice of Life, Sports',\n",
|
||
" 'Adventure, Comedy, Martial Arts, Romance, Shounen, Supernatural',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Action, Drama, Fantasy, Romance, School, Supernatural',\n",
|
||
" 'Action, Adventure, Fantasy, Magic, Military',\n",
|
||
" 'Adventure, Military, Romance',\n",
|
||
" 'Action, Super Power, Supernatural',\n",
|
||
" 'Action, Horror, Mystery, Seinen, Supernatural',\n",
|
||
" 'Drama, Fantasy, Romance, Shoujo',\n",
|
||
" 'Drama, Magic, Romance, Shoujo',\n",
|
||
" 'Action, Mecha, Military, School, Super Power',\n",
|
||
" 'Comedy',\n",
|
||
" 'Action, Super Power, Supernatural, Thriller',\n",
|
||
" 'Action, Comedy, Drama, Mystery, Romance, Thriller',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Action, Comedy, Ecchi, Harem, Magic, Supernatural',\n",
|
||
" 'Fantasy, Slice of Life, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Mystery, Shounen',\n",
|
||
" 'Comedy, School, Slice of Life',\n",
|
||
" 'Drama, Supernatural',\n",
|
||
" 'Action, Demons, Shounen, Supernatural',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Drama, Romance, School, Sci-Fi, Shoujo',\n",
|
||
" 'Shounen, Sports',\n",
|
||
" 'Action, Adventure, Historical, Magic, Mystery, Sci-Fi',\n",
|
||
" 'Action, Ecchi, Fantasy, Romance, School',\n",
|
||
" 'Comedy, Drama, Romance, Shounen',\n",
|
||
" 'Action, Comedy, Drama, Magic, Seinen',\n",
|
||
" 'Comedy, Drama, School, Shounen, Slice of Life, Sports',\n",
|
||
" 'Comedy, Romance, School, Shoujo',\n",
|
||
" 'Action, Comedy, Harem, Sci-Fi, Shounen, Space',\n",
|
||
" 'Action, Drama, Psychological, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Romance, Sci-Fi',\n",
|
||
" 'Action, Drama, Fantasy, Sci-Fi',\n",
|
||
" 'Action, Comedy, Ecchi, Shounen, Sports',\n",
|
||
" 'Action, Drama',\n",
|
||
" 'Action, Adventure, Comedy, Drama',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Historical, Magic, Martial Arts, Romance, Shoujo',\n",
|
||
" 'Comedy, Slice of Life',\n",
|
||
" 'Action, Adventure, Horror, Shounen, Vampire',\n",
|
||
" 'Comedy, Mystery, Supernatural',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi',\n",
|
||
" 'Comedy, Fantasy, Magic, Shoujo',\n",
|
||
" 'Adventure, Comedy, Fantasy, Shounen',\n",
|
||
" 'Action, Historical, Martial Arts, Samurai, Super Power',\n",
|
||
" 'Action, Adventure, Demons, Fantasy, Magic, Supernatural',\n",
|
||
" 'Action, Comedy, Sci-Fi, Shounen, Space',\n",
|
||
" 'Comedy, Romance, School, Shoujo, Slice of Life',\n",
|
||
" 'Adventure, Ecchi, Fantasy, Magic, Romance',\n",
|
||
" 'Romance, School, Shoujo, Slice of Life',\n",
|
||
" 'Adventure, Comedy, Drama, Fantasy, Magic, Romance, Shoujo',\n",
|
||
" 'Comedy, Romance, School, Slice of Life',\n",
|
||
" 'Action, Comedy, Mystery, Seinen, Supernatural',\n",
|
||
" 'Action, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Fantasy, Kids, Sci-Fi, Shounen',\n",
|
||
" 'Comedy, Parody, Slice of Life',\n",
|
||
" 'Adventure, Drama, Fantasy, Sci-Fi, Space',\n",
|
||
" 'Military, School',\n",
|
||
" 'Action, Drama, Historical, Josei, Samurai, Supernatural',\n",
|
||
" 'Comedy, Historical, Parody',\n",
|
||
" 'Comedy, Romance, Shoujo',\n",
|
||
" 'Action, Adventure, Comedy, Shounen',\n",
|
||
" 'Magic, Romance, School, Sci-Fi, Supernatural',\n",
|
||
" 'Comedy, Demons, Mystery, Shounen, Supernatural',\n",
|
||
" 'Adventure, Mystery',\n",
|
||
" 'Action, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Shounen, Super Power',\n",
|
||
" 'Action, Military, Romance',\n",
|
||
" 'Adventure, Fantasy, Shounen, Supernatural',\n",
|
||
" 'Action, Super Power, Supernatural',\n",
|
||
" 'Action, Adventure, Drama, Mecha, Military, Sci-Fi, Space',\n",
|
||
" 'Action, Comedy, Shounen, Super Power, Supernatural',\n",
|
||
" 'Comedy, Game, School, Seinen',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Adventure, Comedy, Fantasy, Sci-Fi, Shounen',\n",
|
||
" 'Action, Comedy, Fantasy, Magic, School, Shoujo, Slice of Life',\n",
|
||
" 'Action, Comedy, Harem, Parody, Romance',\n",
|
||
" 'Adventure, Demons, Drama, Fantasy, Historical, Romance, Shounen, Supernatural',\n",
|
||
" 'Psychological, Romance, Slice of Life',\n",
|
||
" 'Action, Mystery, Romance, Super Power, Thriller',\n",
|
||
" 'Adventure, Fantasy, Psychological',\n",
|
||
" 'Fantasy, Shounen Ai',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Action, Fantasy, Supernatural',\n",
|
||
" 'Adventure, Comedy, Fantasy, Magic, Shounen',\n",
|
||
" 'Action, Adventure, Comedy, Drama, Fantasy, Shounen',\n",
|
||
" 'Action, Drama, Fantasy, Shounen, Super Power',\n",
|
||
" 'Comedy, Drama, Music',\n",
|
||
" 'Drama, Historical, Music, Romance',\n",
|
||
" 'Action, Comedy, Drama, Fantasy',\n",
|
||
" 'Action, School, Sci-Fi, Shounen, Supernatural',\n",
|
||
" 'Action, Mecha, Sci-Fi, Super Power',\n",
|
||
" 'Demons, Magic, Romance, Shoujo',\n",
|
||
" 'Drama',\n",
|
||
" 'Comedy, Drama, Fantasy, Magic, Shoujo',\n",
|
||
" 'Adventure, Comedy, Mystery, Police, Shounen',\n",
|
||
" 'Comedy, Drama, Fantasy, Historical, Military, Shounen',\n",
|
||
" 'Comedy, Parody, Slice of Life',\n",
|
||
" 'Romance, Sci-Fi, Shoujo',\n",
|
||
" 'Fantasy, Kids, Magic, Shoujo',\n",
|
||
" 'Comedy, Drama, Mystery, Romance, Slice of Life, Thriller',\n",
|
||
" 'Comedy, Shounen, Slice of Life, Sports',\n",
|
||
" 'Action, Cars, Drama, Seinen, Sports',\n",
|
||
" 'Action, Fantasy, Shounen, Super Power, Supernatural, Vampire',\n",
|
||
" 'Comedy, Romance, Shounen Ai',\n",
|
||
" 'Action, Comedy, Drama, Magic, Super Power',\n",
|
||
" 'Drama, Mystery, Police, Psychological, Supernatural, Thriller',\n",
|
||
" 'Adventure, Comedy, Fantasy, Kids',\n",
|
||
" 'Adventure, Drama, Sci-Fi, Slice of Life',\n",
|
||
" 'Action, Fantasy, Seinen, Supernatural',\n",
|
||
" 'Action, Historical, Martial Arts, Samurai, Super Power',\n",
|
||
" 'Action, Drama, Fantasy, Romance, School, Supernatural',\n",
|
||
" 'Action, Drama, Mecha, Military, Sci-Fi',\n",
|
||
" 'Adventure, Historical, Sci-Fi',\n",
|
||
" 'Action, Adventure, Comedy, Fantasy, Shounen',\n",
|
||
" 'Mystery, Supernatural',\n",
|
||
" 'Comedy, Ecchi, Kids, School, Shounen, Slice of Life',\n",
|
||
" 'Comedy, School, Shounen, Sports',\n",
|
||
" 'Adventure, Comedy, Fantasy, Kids, Shounen',\n",
|
||
" 'Comedy, Sci-Fi',\n",
|
||
" 'Action, Comedy, Drama, Mystery, Shounen, Super Power, Supernatural',\n",
|
||
" 'Action, Super Power, Supernatural',\n",
|
||
" 'Comedy, Shounen',\n",
|
||
" 'Adventure, Comedy, Fantasy, Shounen',\n",
|
||
" 'Comedy, Fantasy, Parody, Shounen, Supernatural',\n",
|
||
" ...]"
|
||
]
|
||
},
|
||
"execution_count": 15,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Создание списка или объекта Series на основе значений столбца\n",
|
||
"\n",
|
||
"anime['genre'].tolist()\n",
|
||
"#anime['genre']"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 16,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"['Kimi no Na wa.',\n",
|
||
" 'Fullmetal Alchemist: Brotherhood',\n",
|
||
" 'Gintama°',\n",
|
||
" 'Steins;Gate',\n",
|
||
" 'Gintama'',\n",
|
||
" 'Haikyuu!!: Karasuno Koukou VS Shiratorizawa Gakuen Koukou',\n",
|
||
" 'Hunter x Hunter (2011)',\n",
|
||
" 'Ginga Eiyuu Densetsu',\n",
|
||
" 'Gintama Movie: Kanketsu-hen - Yorozuya yo Eien Nare',\n",
|
||
" 'Gintama': Enchousen',\n",
|
||
" 'Clannad: After Story',\n",
|
||
" 'Koe no Katachi',\n",
|
||
" 'Gintama',\n",
|
||
" 'Code Geass: Hangyaku no Lelouch R2',\n",
|
||
" 'Haikyuu!! Second Season',\n",
|
||
" 'Sen to Chihiro no Kamikakushi',\n",
|
||
" 'Shigatsu wa Kimi no Uso',\n",
|
||
" 'Mushishi Zoku Shou 2nd Season',\n",
|
||
" 'Ookami Kodomo no Ame to Yuki',\n",
|
||
" 'Code Geass: Hangyaku no Lelouch',\n",
|
||
" 'Hajime no Ippo',\n",
|
||
" 'Rurouni Kenshin: Meiji Kenkaku Romantan - Tsuioku-hen',\n",
|
||
" 'Cowboy Bebop',\n",
|
||
" 'One Punch Man',\n",
|
||
" 'Mononoke Hime',\n",
|
||
" 'Suzumiya Haruhi no Shoushitsu',\n",
|
||
" 'Monogatari Series: Second Season',\n",
|
||
" 'Mushishi Zoku Shou',\n",
|
||
" 'Mushishi',\n",
|
||
" 'Tengen Toppa Gurren Lagann',\n",
|
||
" 'Great Teacher Onizuka',\n",
|
||
" 'Natsume Yuujinchou Go',\n",
|
||
" 'Hajime no Ippo: New Challenger',\n",
|
||
" 'Mushishi Zoku Shou: Suzu no Shizuku',\n",
|
||
" 'Natsume Yuujinchou Shi',\n",
|
||
" 'Howl no Ugoku Shiro',\n",
|
||
" 'Fate/Zero 2nd Season',\n",
|
||
" 'Kizumonogatari II: Nekketsu-hen',\n",
|
||
" 'Monster',\n",
|
||
" 'Bakuman. 3rd Season',\n",
|
||
" 'Death Note',\n",
|
||
" 'Gintama°: Aizome Kaori-hen',\n",
|
||
" 'Ansatsu Kyoushitsu (TV) 2nd Season',\n",
|
||
" 'Haikyuu!!',\n",
|
||
" 'Hajime no Ippo: Rising',\n",
|
||
" 'Kara no Kyoukai 5: Mujun Rasen',\n",
|
||
" 'Natsume Yuujinchou San',\n",
|
||
" 'Ping Pong The Animation',\n",
|
||
" 'Mushishi Special: Hihamukage',\n",
|
||
" 'Boku dake ga Inai Machi',\n",
|
||
" 'Yojouhan Shinwa Taikei',\n",
|
||
" 'Aria The Origination',\n",
|
||
" 'Kamisama Hajimemashita: Kako-hen',\n",
|
||
" 'Rainbow: Nisha Rokubou no Shichinin',\n",
|
||
" 'Re:Zero kara Hajimeru Isekai Seikatsu',\n",
|
||
" 'Tengen Toppa Gurren Lagann Movie: Lagann-hen',\n",
|
||
" 'Zoku Natsume Yuujinchou',\n",
|
||
" 'Ano Hi Mita Hana no Namae wo Bokutachi wa Mada Shiranai.',\n",
|
||
" 'Kuroko no Basket 3rd Season',\n",
|
||
" 'Steins;Gate Movie: Fuka Ryouiki no Déjà vu',\n",
|
||
" 'Hotarubi no Mori e',\n",
|
||
" 'Shokugeki no Souma',\n",
|
||
" 'Yuri!!! on Ice',\n",
|
||
" 'Gintama: Yorinuki Gintama-san on Theater 2D',\n",
|
||
" 'JoJo no Kimyou na Bouken: Stardust Crusaders 2nd Season',\n",
|
||
" 'Gintama Movie: Shinyaku Benizakura-hen',\n",
|
||
" 'Hellsing Ultimate',\n",
|
||
" 'Kiseijuu: Sei no Kakuritsu',\n",
|
||
" 'Shouwa Genroku Rakugo Shinjuu',\n",
|
||
" 'Uchuu Kyoudai',\n",
|
||
" 'Bakemono no Ko',\n",
|
||
" 'Hotaru no Haka',\n",
|
||
" 'Kuroko no Basket 2nd Season',\n",
|
||
" 'Major S5',\n",
|
||
" 'One Piece',\n",
|
||
" 'Ghost in the Shell: Stand Alone Complex 2nd GIG',\n",
|
||
" 'JoJo no Kimyou na Bouken: Diamond wa Kudakenai',\n",
|
||
" 'Kara no Kyoukai 7: Satsujin Kousatsu (Kou)',\n",
|
||
" 'Kingdom 2nd Season',\n",
|
||
" 'Slam Dunk',\n",
|
||
" 'Usagi Drop',\n",
|
||
" 'Girls und Panzer der Film',\n",
|
||
" 'Mob Psycho 100',\n",
|
||
" 'Nana',\n",
|
||
" 'Baccano!',\n",
|
||
" 'Mushishi Zoku Shou: Odoro no Michi',\n",
|
||
" 'Shingeki no Kyojin',\n",
|
||
" 'Bakuman. 2nd Season',\n",
|
||
" 'Cross Game',\n",
|
||
" 'Doukyuusei (Movie)',\n",
|
||
" 'Evangelion: 2.0 You Can (Not) Advance',\n",
|
||
" 'Shinsekai yori',\n",
|
||
" 'Uchuu Senkan Yamato 2199',\n",
|
||
" 'Chihayafuru 2',\n",
|
||
" 'Fate/Zero',\n",
|
||
" 'JoJo no Kimyou na Bouken (TV)',\n",
|
||
" 'Mahou Shoujo Madoka★Magica',\n",
|
||
" 'Nichijou',\n",
|
||
" 'Psycho-Pass',\n",
|
||
" 'Barakamon',\n",
|
||
" 'Diamond no Ace: Second Season',\n",
|
||
" 'Magi: The Kingdom of Magic',\n",
|
||
" 'Mahou Shoujo Madoka★Magica Movie 3: Hangyaku no Monogatari',\n",
|
||
" 'Major: World Series',\n",
|
||
" 'Samurai Champloo',\n",
|
||
" 'Shokugeki no Souma: Ni no Sara',\n",
|
||
" 'Katanagatari',\n",
|
||
" 'Mahou Shoujo Madoka★Magica Movie 2: Eien no Monogatari',\n",
|
||
" 'Major S6',\n",
|
||
" 'Mononoke',\n",
|
||
" 'Shirobako',\n",
|
||
" 'Ashita no Joe 2',\n",
|
||
" 'Hunter x Hunter',\n",
|
||
" 'Noragami Aragoto',\n",
|
||
" 'Sakamichi no Apollon',\n",
|
||
" 'Tonari no Totoro',\n",
|
||
" 'Ghost in the Shell: Stand Alone Complex',\n",
|
||
" 'Kaze no Tani no Nausicaä',\n",
|
||
" 'No Game No Life',\n",
|
||
" 'Romeo no Aoi Sora',\n",
|
||
" 'Yuu☆Yuu☆Hakusho',\n",
|
||
" 'Kino no Tabi: The Beautiful World',\n",
|
||
" 'Kuroko no Basket',\n",
|
||
" 'Nodame Cantabile',\n",
|
||
" 'Ookami to Koushinryou II',\n",
|
||
" 'Shingeki no Kyojin: Kuinaki Sentaku',\n",
|
||
" 'Steins;Gate: Oukoubakko no Poriomania',\n",
|
||
" 'Fate/stay night: Unlimited Blade Works 2nd Season',\n",
|
||
" 'Kemono no Souja Erin',\n",
|
||
" 'Kizumonogatari I: Tekketsu-hen',\n",
|
||
" 'Neon Genesis Evangelion: The End of Evangelion',\n",
|
||
" 'Toradora!',\n",
|
||
" 'Toki wo Kakeru Shoujo',\n",
|
||
" 'Tsubasa: Tokyo Revelations',\n",
|
||
" 'Owarimonogatari',\n",
|
||
" 'Rurouni Kenshin: Meiji Kenkaku Romantan',\n",
|
||
" 'Stranger: Mukou Hadan',\n",
|
||
" 'Detective Conan Movie 06: The Phantom of Baker Street',\n",
|
||
" 'Fate/stay night: Unlimited Blade Works',\n",
|
||
" 'Major S1',\n",
|
||
" 'Mobile Suit Gundam: The Origin',\n",
|
||
" 'Nanatsu no Taizai',\n",
|
||
" 'Natsume Yuujinchou',\n",
|
||
" 'One Piece Film: Strong World',\n",
|
||
" 'Higurashi no Naku Koro ni Kai',\n",
|
||
" 'Hunter x Hunter OVA',\n",
|
||
" 'Hunter x Hunter: Greed Island Final',\n",
|
||
" 'Kuroshitsuji: Book of Murder',\n",
|
||
" 'Major S2',\n",
|
||
" 'One Outs',\n",
|
||
" 'Beck',\n",
|
||
" 'Berserk',\n",
|
||
" 'Cowboy Bebop: Tengoku no Tobira',\n",
|
||
" 'Major S3',\n",
|
||
" 'Mobile Suit Gundam Unicorn',\n",
|
||
" 'Natsume Yuujinchou: Itsuka Yuki no Hi ni',\n",
|
||
" 'NHK ni Youkoso!',\n",
|
||
" 'Rose of Versailles',\n",
|
||
" 'Sakurasou no Pet na Kanojo',\n",
|
||
" 'Angel Beats!',\n",
|
||
" 'Bakemonogatari',\n",
|
||
" 'Bungou Stray Dogs 2nd Season',\n",
|
||
" 'Hajime no Ippo: Champion Road',\n",
|
||
" 'One Piece Film: Z',\n",
|
||
" 'Ouran Koukou Host Club',\n",
|
||
" 'Detective Conan Movie 13: The Raven Chaser',\n",
|
||
" 'Durarara!!',\n",
|
||
" 'Nodame Cantabile Finale',\n",
|
||
" 'Planetes',\n",
|
||
" 'Shelter',\n",
|
||
" 'Tenkuu no Shiro Laputa',\n",
|
||
" 'Gintama: Shiroyasha Koutan',\n",
|
||
" 'Hachimitsu to Clover II',\n",
|
||
" 'InuYasha: Kanketsu-hen',\n",
|
||
" 'Kaguya-hime no Monogatari',\n",
|
||
" 'Katekyo Hitman Reborn!',\n",
|
||
" 'Kuroshitsuji: Book of Circus',\n",
|
||
" 'Ookami to Koushinryou',\n",
|
||
" 'Boku no Hero Academia',\n",
|
||
" 'Gin no Saji 2nd Season',\n",
|
||
" 'Little Busters!: Refrain',\n",
|
||
" 'Major: Message',\n",
|
||
" 'Saint Seiya: The Lost Canvas - Meiou Shinwa 2',\n",
|
||
" 'SKET Dance',\n",
|
||
" 'Bakuman.',\n",
|
||
" 'Danshi Koukousei no Nichijou',\n",
|
||
" 'Kotonoha no Niwa',\n",
|
||
" 'Kyoukai no Kanata Movie: I'll Be Here - Mirai-hen',\n",
|
||
" 'Major S4',\n",
|
||
" 'Omoide no Marnie',\n",
|
||
" 'Working!!!: Lord of the Takanashi',\n",
|
||
" 'Ghost in the Shell',\n",
|
||
" 'K-On! Movie',\n",
|
||
" 'Kuroko no Basket: Saikou no Present Desu',\n",
|
||
" 'Mahou Shoujo Lyrical Nanoha: The Movie 2nd A's',\n",
|
||
" 'Sennen Joyuu',\n",
|
||
" 'Steins;Gate: Kyoukaimenjou no Missing Link - Divide By Zero',\n",
|
||
" 'xxxHOLiC Kei',\n",
|
||
" 'Berserk: Ougon Jidai-hen III - Kourin',\n",
|
||
" 'Death Parade',\n",
|
||
" 'Fullmetal Alchemist',\n",
|
||
" 'Gyakkyou Burai Kaiji: Ultimate Survivor',\n",
|
||
" 'Hunter x Hunter: Greed Island',\n",
|
||
" 'Redline',\n",
|
||
" 'Chihayafuru',\n",
|
||
" 'Detective Conan Movie 20: The Darkest Nightmare',\n",
|
||
" 'Dragon Ball Z',\n",
|
||
" 'Fate/stay night: Unlimited Blade Works - Prologue',\n",
|
||
" 'Kokoro ga Sakebitagatterunda.',\n",
|
||
" 'Mimi wo Sumaseba',\n",
|
||
" 'Nagi no Asukara',\n",
|
||
" 'Neon Genesis Evangelion',\n",
|
||
" 'One Piece Film: Gold',\n",
|
||
" 'Tokyo Godfathers',\n",
|
||
" 'Trigun',\n",
|
||
" 'xxxHOLiC Rou',\n",
|
||
" 'Gintama: Shinyaku Benizakura-hen',\n",
|
||
" 'Mahou Shoujo Madoka★Magica Movie 1: Hajimari no Monogatari',\n",
|
||
" 'Sekaiichi Hatsukoi 2',\n",
|
||
" 'Yahari Ore no Seishun Love Comedy wa Machigatteiru. Zoku',\n",
|
||
" 'Yahari Ore no Seishun Love Comedy wa Machigatteiru. Zoku OVA',\n",
|
||
" 'Aria The Natural',\n",
|
||
" 'Black Lagoon: The Second Barrage',\n",
|
||
" 'Clannad',\n",
|
||
" 'Kami nomi zo Shiru Sekai: Megami-hen',\n",
|
||
" 'Summer Wars',\n",
|
||
" 'Baccano! Specials',\n",
|
||
" 'Detective Conan Movie 14: The Lost Ship in the Sky',\n",
|
||
" 'Gyakkyou Burai Kaiji: Hakairoku-hen',\n",
|
||
" 'Initial D Final Stage',\n",
|
||
" 'Kaiba',\n",
|
||
" 'One Piece: Episode of Merry - Mou Hitori no Nakama no Monogatari',\n",
|
||
" 'Saiki Kusuo no Ψ-nan (TV)',\n",
|
||
" 'Cardcaptor Sakura Movie 2: Fuuin Sareta Card',\n",
|
||
" 'Hajime no Ippo: Mashiba vs. Kimura',\n",
|
||
" 'Kamisama Hajimemashita◎',\n",
|
||
" 'Skip Beat!',\n",
|
||
" 'Yowamushi Pedal: Grande Road',\n",
|
||
" 'Gankutsuou',\n",
|
||
" 'Majo no Takkyuubin',\n",
|
||
" 'Nodame Cantabile: Paris-hen',\n",
|
||
" 'One Piece: Episode of Nami - Koukaishi no Namida to Nakama no Kizuna',\n",
|
||
" 'Osomatsu-san',\n",
|
||
" 'Space☆Dandy 2nd Season',\n",
|
||
" 'Tsumiki no Ie',\n",
|
||
" 'Detroit Metal City',\n",
|
||
" 'Eve no Jikan',\n",
|
||
" 'Eve no Jikan (Movie)',\n",
|
||
" 'Kaichou wa Maid-sama!',\n",
|
||
" 'Saint Seiya: Meiou Hades Juuni Kyuu-hen',\n",
|
||
" 'Zankyou no Terror',\n",
|
||
" 'Darker than Black: Kuro no Keiyakusha',\n",
|
||
" 'Detective Conan',\n",
|
||
" 'Detective Conan Movie 05: Countdown to Heaven',\n",
|
||
" 'Diamond no Ace',\n",
|
||
" 'Fairy Tail (2014)',\n",
|
||
" 'Hibike! Euphonium 2',\n",
|
||
" 'JoJo no Kimyou na Bouken: Stardust Crusaders',\n",
|
||
" 'Maison Ikkoku',\n",
|
||
" 'Non Non Biyori Repeat',\n",
|
||
" 'Shijou Saikyou no Deshi Kenichi',\n",
|
||
" 'Yuusha-Ou GaoGaiGar Final',\n",
|
||
" 'Gekkan Shoujo Nozaki-kun',\n",
|
||
" 'Initial D Fourth Stage',\n",
|
||
" 'Junjou Romantica 2',\n",
|
||
" 'Kaze Tachinu',\n",
|
||
" 'Kingdom',\n",
|
||
" 'Kuragehime',\n",
|
||
" 'Magi: The Labyrinth of Magic',\n",
|
||
" 'Mobile Suit Gundam 00',\n",
|
||
" 'ReLIFE',\n",
|
||
" 'Saint Seiya: The Lost Canvas - Meiou Shinwa',\n",
|
||
" 'Seirei no Moribito',\n",
|
||
" 'Akatsuki no Yona',\n",
|
||
" 'Detective Conan Movie 08: Magician of the Silver Sky',\n",
|
||
" 'Durarara!!x2 Ketsu',\n",
|
||
" 'Free!: Eternal Summer Special',\n",
|
||
" 'Glass no Kamen (2005)',\n",
|
||
" 'Gosick',\n",
|
||
" 'Hajime no Ippo: Boxer no Kobushi',\n",
|
||
" 'Initial D First Stage',\n",
|
||
" 'Kill la Kill',\n",
|
||
" 'Lovely★Complex',\n",
|
||
" 'Perfect Blue',\n",
|
||
" 'Princess Tutu',\n",
|
||
" 'Sakasama no Patema',\n",
|
||
" 'Tsubasa: Shunraiki',\n",
|
||
" 'Ashita no Joe',\n",
|
||
" 'Fairy Tail',\n",
|
||
" 'Ghost in the Shell: Stand Alone Complex - Solid State Society',\n",
|
||
" 'Magi: Sinbad no Bouken (TV)',\n",
|
||
" 'Shoujo Kakumei Utena',\n",
|
||
" 'Tengen Toppa Gurren Lagann Movie: Gurren-hen',\n",
|
||
" 'Detective Conan Movie 10: Requiem of the Detectives',\n",
|
||
" 'Evangelion: 1.0 You Are (Not) Alone',\n",
|
||
" 'Full Metal Panic? Fumoffu',\n",
|
||
" 'Ginga Eiyuu Densetsu: Arata Naru Tatakai no Overture',\n",
|
||
" 'Kara no Kyoukai 3: Tsuukaku Zanryuu',\n",
|
||
" 'Mobile Suit Gundam 00 Second Season',\n",
|
||
" 'Nisemonogatari',\n",
|
||
" 'Tsukimonogatari',\n",
|
||
" 'Ansatsu Kyoushitsu (TV)',\n",
|
||
" 'Aria The Avvenire',\n",
|
||
" 'Baby Steps 2nd Season',\n",
|
||
" 'D.Gray-man',\n",
|
||
" 'Ginga Eiyuu Densetsu Gaiden: Senoku no Hoshi, Senoku no Hikari',\n",
|
||
" 'Gintama: Jump Festa 2014 Special',\n",
|
||
" 'Lupin III: Cagliostro no Shiro',\n",
|
||
" 'Mobile Suit Gundam: Iron-Blooded Orphans 2nd Season',\n",
|
||
" 'Ookiku Furikabutte: Natsu no Taikai-hen',\n",
|
||
" 'Saiunkoku Monogatari 2nd Season',\n",
|
||
" 'Sekaiichi Hatsukoi Movie: Yokozawa Takafumi no Baai',\n",
|
||
" 'Ano Hi Mita Hana no Namae wo Bokutachi wa Mada Shiranai. Movie',\n",
|
||
" 'Dennou Coil',\n",
|
||
" 'Eureka Seven',\n",
|
||
" 'Ghost in the Shell: Stand Alone Complex - The Laughing Man',\n",
|
||
" 'Gintama: Dai Hanseikai',\n",
|
||
" 'Hidamari Sketch: Sae Hiro Sotsugyou-hen',\n",
|
||
" 'Hikaru no Go',\n",
|
||
" 'Kimi ni Todoke',\n",
|
||
" 'Kokoro Connect: Michi Random',\n",
|
||
" 'Tokyo Magnitude 8.0',\n",
|
||
" 'Cardcaptor Sakura',\n",
|
||
" 'ef: A Tale of Melodies.',\n",
|
||
" 'Gin no Saji',\n",
|
||
" 'Hachimitsu to Clover',\n",
|
||
" 'Kodomo no Omocha (TV)',\n",
|
||
" 'Love Live! The School Idol Movie',\n",
|
||
" 'Mahoutsukai no Yome: Hoshi Matsu Hito',\n",
|
||
" 'Sekaiichi Hatsukoi OVA',\n",
|
||
" 'Working!!!',\n",
|
||
" 'Black Lagoon',\n",
|
||
" 'Detective Conan Movie 18: The Sniper from Another Dimension',\n",
|
||
" 'Final Fantasy VII: Advent Children Complete',\n",
|
||
" 'Higurashi no Naku Koro ni',\n",
|
||
" 'Hyouka',\n",
|
||
" 'Interstella5555: The 5tory of The 5ecret 5tar 5ystem',\n",
|
||
" 'Kanon (2006)',\n",
|
||
" 'Kimi ni Todoke 2nd Season',\n",
|
||
" 'Noragami',\n",
|
||
" 'Persona 3 the Movie 4: Winter of Rebirth',\n",
|
||
" 'xxxHOLiC Shunmuki',\n",
|
||
" 'Zetsuen no Tempest',\n",
|
||
" 'Aria The Origination: Sono Choppiri Himitsu no Basho ni...',\n",
|
||
" 'Detective Conan Movie 03: The Last Wizard of the Century',\n",
|
||
" 'Detective Conan Movie 04: Captured in Her Eyes',\n",
|
||
" 'Dragon Ball',\n",
|
||
" 'Hanada Shounen-shi',\n",
|
||
" 'Junjou Romantica 3',\n",
|
||
" 'Juuni Kokuki',\n",
|
||
" 'Major Movie: Yuujou no Winning Shot',\n",
|
||
" 'Mirai Shounen Conan',\n",
|
||
" 'One Piece Film: Strong World Episode 0',\n",
|
||
" 'Phantom: Requiem for the Phantom',\n",
|
||
" 'Tamako Love Story',\n",
|
||
" 'Toaru Kagaku no Railgun S',\n",
|
||
" 'Touch',\n",
|
||
" 'Yowamushi Pedal',\n",
|
||
" 'Akira',\n",
|
||
" 'Black Lagoon: Roberta's Blood Trail',\n",
|
||
" 'Durarara!!x2 Shou',\n",
|
||
" 'Gintama: Jump Festa 2015 Special',\n",
|
||
" 'High☆Speed!: Free! Starting Days',\n",
|
||
" 'Kyou kara Ore wa!!',\n",
|
||
" 'Nurarihyon no Mago: Sennen Makyou',\n",
|
||
" 'Paprika',\n",
|
||
" 'Prince of Tennis: The National Tournament Finals',\n",
|
||
" 'School Rumble Ni Gakki',\n",
|
||
" 'Sekaiichi Hatsukoi',\n",
|
||
" 'Akagami no Shirayuki-hime 2nd Season',\n",
|
||
" 'Clannad: Mou Hitotsu no Sekai, Tomoyo-hen',\n",
|
||
" 'Ginga Nagareboshi Gin',\n",
|
||
" 'Initial D Fifth Stage',\n",
|
||
" 'K-On!!',\n",
|
||
" 'Log Horizon',\n",
|
||
" 'Sekaiichi Hatsukoi: Valentine-hen',\n",
|
||
" 'Slayers Next',\n",
|
||
" 'Aria The OVA: Arietta',\n",
|
||
" 'Detective Conan Movie 15: Quarter of Silence',\n",
|
||
" 'Digimon Adventure tri. 3: Kokuhaku',\n",
|
||
" 'Gintama: Nanigoto mo Saiyo ga Kanjin nano de Tasho Senobisuru Kurai ga Choudoyoi',\n",
|
||
" 'Igano Kabamaru',\n",
|
||
" 'Kamisama Hajimemashita',\n",
|
||
" 'Kara no Kyoukai: Mirai Fukuin',\n",
|
||
" 'Mobile Suit Gundam: The 08th MS Team',\n",
|
||
" 'Omae Umasou da na',\n",
|
||
" 'Ushio to Tora (TV) 2nd Season',\n",
|
||
" 'Wolf's Rain OVA',\n",
|
||
" 'Ajin 2nd Season',\n",
|
||
" 'Aoki Hagane no Arpeggio: Ars Nova Cadenza',\n",
|
||
" 'City Hunter 2',\n",
|
||
" 'Durarara!!x2 Ten',\n",
|
||
" 'ef: A Tale of Memories.',\n",
|
||
" 'Ghost in the Shell 2.0',\n",
|
||
" 'Ghost in the Shell: Stand Alone Complex 2nd GIG - Individual Eleven',\n",
|
||
" 'Ginga Sengoku Gunyuuden Rai',\n",
|
||
" 'Initial D Second Stage',\n",
|
||
" 'Kami nomi zo Shiru Sekai II',\n",
|
||
" 'Noragami Aragoto OVA',\n",
|
||
" 'Stand By Me Doraemon',\n",
|
||
" 'Tiger & Bunny',\n",
|
||
" 'Yahari Ore no Seishun Love Comedy wa Machigatteiru.',\n",
|
||
" 'Fullmetal Alchemist: Brotherhood Specials',\n",
|
||
" 'Hanamonogatari',\n",
|
||
" 'Kimi to Boku. 2',\n",
|
||
" 'Ookiku Furikabutte',\n",
|
||
" 'Ore Monogatari!!',\n",
|
||
" 'Tamayura: Sotsugyou Shashin Part 4 - Ashita',\n",
|
||
" 'Tekkon Kinkreet',\n",
|
||
" 'There She Is!!',\n",
|
||
" 'xxxHOLiC',\n",
|
||
" 'Byousoku 5 Centimeter',\n",
|
||
" 'Danganronpa 3: The End of Kibougamine Gakuen - Kibou-hen',\n",
|
||
" 'Ginga Eiyuu Densetsu Gaiden: Rasen Meikyuu',\n",
|
||
" 'Hyouge Mono',\n",
|
||
" 'Karigurashi no Arrietty',\n",
|
||
" 'Mahou Shoujo Lyrical Nanoha A's',\n",
|
||
" 'Rurouni Kenshin: Meiji Kenkaku Romantan - Seisou-hen',\n",
|
||
" 'Tanaka-kun wa Itsumo Kedaruge',\n",
|
||
" 'Berserk: Ougon Jidai-hen II - Doldrey Kouryaku',\n",
|
||
" 'Darker than Black: Kuro no Keiyakusha Gaiden',\n",
|
||
" 'Elsword: El Lady',\n",
|
||
" 'Ginga Eiyuu Densetsu: Waga Yuku wa Hoshi no Taikai',\n",
|
||
" 'Hikaru no Go: Journey to the North Star Cup',\n",
|
||
" 'Hybrid Child',\n",
|
||
" 'Isekai no Seikishi Monogatari',\n",
|
||
" 'Junjou Romantica OVA',\n",
|
||
" 'Kobato.',\n",
|
||
" 'Kuuchuu Buranko',\n",
|
||
" 'Macross: Do You Remember Love?',\n",
|
||
" 'One Piece 3D2Y: Ace no shi wo Koete! Luffy Nakama Tono Chikai',\n",
|
||
" 'Prince of Tennis: The National Tournament',\n",
|
||
" 'Prince of Tennis: The National Tournament Semifinals',\n",
|
||
" 'Eyeshield 21',\n",
|
||
" 'Full Moon wo Sagashite',\n",
|
||
" 'Grisaia no Rakuen',\n",
|
||
" 'Jigoku Shoujo Futakomori',\n",
|
||
" 'Junjou Romantica',\n",
|
||
" 'Mawaru Penguindrum',\n",
|
||
" 'SKET Dance OVA',\n",
|
||
" 'Soul Eater',\n",
|
||
" 'Trigun: Badlands Rumble',\n",
|
||
" 'Haibane Renmei',\n",
|
||
" 'Kuroko no Basket: Tip Off',\n",
|
||
" 'Macross',\n",
|
||
" 'Mirai Nikki (TV)',\n",
|
||
" 'Saiyuuki Reload: Burial',\n",
|
||
" 'Tentai Senshi Sunred 2nd Season',\n",
|
||
" 'Terra e... (TV)',\n",
|
||
" 'Tokyo Ghoul',\n",
|
||
" 'Usagi Drop Specials',\n",
|
||
" 'Yume-iro Pâtissière',\n",
|
||
" 'Azumanga Daioh',\n",
|
||
" 'Colorful (Movie)',\n",
|
||
" 'Detective Conan OVA 09: The Stranger in 10 Years...',\n",
|
||
" 'Drifters: Special Edition',\n",
|
||
" 'FLCL',\n",
|
||
" 'Full Metal Panic! The Second Raid',\n",
|
||
" 'Kuroshitsuji',\n",
|
||
" 'Love Live! School Idol Project 2nd Season',\n",
|
||
" 'Macross F Movie 2: Sayonara no Tsubasa',\n",
|
||
" 'Magi: Sinbad no Bouken',\n",
|
||
" 'Nekomonogatari: Kuro',\n",
|
||
" 'Saiunkoku Monogatari',\n",
|
||
" 'School Rumble',\n",
|
||
" 'Strike the Blood II',\n",
|
||
" 'Suzumiya Haruhi no Yuuutsu',\n",
|
||
" 'Flanders no Inu (Movie)',\n",
|
||
" 'Golden Boy',\n",
|
||
" 'Grisaia no Meikyuu: Caprice no Mayu 0',\n",
|
||
" 'Kaleido Star',\n",
|
||
" 'Kara no Kyoukai 4: Garan no Dou',\n",
|
||
" 'Lupin III vs. Detective Conan: The Movie',\n",
|
||
" 'Non Non Biyori',\n",
|
||
" 'Seitokai Yakuindomo* OVA',\n",
|
||
" 'Yakitate!! Japan',\n",
|
||
" 'Beelzebub',\n",
|
||
" 'Death Billiards',\n",
|
||
" 'Durarara!! Specials',\n",
|
||
" 'Jormungand: Perfect Order',\n",
|
||
" 'Mahou Shoujo Lyrical Nanoha: The Movie 1st',\n",
|
||
" 'Overlord',\n",
|
||
" 'Prince of Tennis',\n",
|
||
" 'Takarajima',\n",
|
||
" 'xxxHOLiC Movie: Manatsu no Yoru no Yume',\n",
|
||
" 'Yuru Yuri San☆Hai!',\n",
|
||
" 'Boruto: Naruto the Movie',\n",
|
||
" 'Coquelicot-zaka kara',\n",
|
||
" 'Eikoku Koi Monogatari Emma: Molders-hen',\n",
|
||
" 'Ergo Proxy',\n",
|
||
" 'Hanasaku Iroha',\n",
|
||
" 'Hataraku Maou-sama!',\n",
|
||
" 'Hibike! Euphonium',\n",
|
||
" 'Higashi no Eden',\n",
|
||
" 'Ie Naki Ko Remi',\n",
|
||
" 'Kono Subarashii Sekai ni Shukufuku wo!',\n",
|
||
" 'Kurenai no Buta',\n",
|
||
" 'Mobile Suit Zeta Gundam',\n",
|
||
" 'Prison School',\n",
|
||
" 'Saint Seiya',\n",
|
||
" 'Sayonara Zetsubou Sensei',\n",
|
||
" 'Seto no Hanayome OVA',\n",
|
||
" 'Zoku Sayonara Zetsubou Sensei',\n",
|
||
" 'Akachan to Boku',\n",
|
||
" 'Clannad: After Story - Mou Hitotsu no Sekai, Kyou-hen',\n",
|
||
" 'Hakuouki Movie 2: Shikon Soukyuu',\n",
|
||
" 'Kara no Kyoukai 2: Satsujin Kousatsu (Zen)',\n",
|
||
" 'Macross F',\n",
|
||
" 'Magic Kaito',\n",
|
||
" 'Sakigake!! Cromartie Koukou',\n",
|
||
" 'Shijou Saikyou no Deshi Kenichi OVA',\n",
|
||
" 'Touhai Densetsu Akagi: Yami ni Maiorita Tensai',\n",
|
||
" 'Carnival Phantasm',\n",
|
||
" 'D.Gray-man Hallow',\n",
|
||
" 'Date A Live: Encore OVA',\n",
|
||
" 'Dragon Ball Kai (2014)',\n",
|
||
" 'Gochuumon wa Usagi Desu ka??',\n",
|
||
" 'Hidamari Sketch x ☆☆☆',\n",
|
||
" 'Kokoro Connect',\n",
|
||
" 'Saiyuuki Gaiden',\n",
|
||
" 'Shirokuma Cafe',\n",
|
||
" 'Tiger & Bunny Movie 2: The Rising',\n",
|
||
" 'Zan Sayonara Zetsubou Sensei',\n",
|
||
" 'City Hunter',\n",
|
||
" 'Detective Conan Movie 02: The Fourteenth Target',\n",
|
||
" 'Gekkan Shoujo Nozaki-kun Specials',\n",
|
||
" 'Giant Robo the Animation: Chikyuu ga Seishi Suru Hi',\n",
|
||
" 'Hetalia: The Beautiful World Specials',\n",
|
||
" 'Kaleido Star: Legend of Phoenix - Layla Hamilton Monogatari',\n",
|
||
" 'Kamisama Hajimemashita OVA',\n",
|
||
" 'Little Witch Academia',\n",
|
||
" 'Maria-sama ga Miteru 3rd',\n",
|
||
" 'Mobile Suit Gundam Thunderbolt',\n",
|
||
" 'The Everlasting Guilty Crown',\n",
|
||
" 'Bishoujo Senshi Sailor Moon: Sailor Stars',\n",
|
||
" 'Break Blade 4: Sanka no Chi',\n",
|
||
" 'Hanasaku Iroha: Home Sweet Home',\n",
|
||
" 'Hidamari Sketch x Honeycomb',\n",
|
||
" 'Hokuto no Ken',\n",
|
||
" 'Les Misérables: Shoujo Cosette',\n",
|
||
" 'Serial Experiments Lain',\n",
|
||
" 'Shiki',\n",
|
||
" 'Ushiro no Shoumen Daare',\n",
|
||
" 'Baka to Test to Shoukanjuu Ni!',\n",
|
||
" 'Detective Conan Movie 01: The Timed Skyscraper',\n",
|
||
" 'Detective Conan Movie 07: Crossroad in the Ancient Capital',\n",
|
||
" 'Gundam Build Fighters',\n",
|
||
" 'Hetalia: The Beautiful World',\n",
|
||
" 'Initial D Third Stage',\n",
|
||
" 'Kuroko no Basket 3rd Season NG-shuu',\n",
|
||
" 'Neko no Ongaeshi',\n",
|
||
" 'Seihou Bukyou Outlaw Star',\n",
|
||
" 'White Album 2',\n",
|
||
" 'Working'!!',\n",
|
||
" 'Gate: Jieitai Kanochi nite, Kaku Tatakaeri',\n",
|
||
" 'Gate: Jieitai Kanochi nite, Kaku Tatakaeri 2nd Season',\n",
|
||
" 'Ghost Hunt',\n",
|
||
" 'Gungrave',\n",
|
||
" 'Jungle wa Itsumo Hare nochi Guu',\n",
|
||
" 'Kuroko no Basket 2nd Season NG-shuu',\n",
|
||
" 'Kyou kara Maou! 3rd Series',\n",
|
||
" 'Lupin III (2015)',\n",
|
||
" 'Madang-Eul Naon Amtalg',\n",
|
||
" 'Maria-sama ga Miteru 4th',\n",
|
||
" 'Musekinin Kanchou Tylor',\n",
|
||
" 'Ookami to Koushinryou II: Ookami to Kohakuiro no Yuuutsu',\n",
|
||
" 'Saint Seiya: Meiou Hades Meikai-hen',\n",
|
||
" 'Saint☆Oniisan (Movie)',\n",
|
||
" 'Seikai no Senki II',\n",
|
||
" 'Top wo Nerae! Gunbuster',\n",
|
||
" 'Toshokan Sensou: Kakumei no Tsubasa',\n",
|
||
" 'Uchouten Kazoku',\n",
|
||
" 'Baby Steps',\n",
|
||
" 'Break Blade 5: Shisen no Hate',\n",
|
||
" 'Code Geass: Hangyaku no Lelouch R2 Special Edition Zero Requiem',\n",
|
||
" 'Goku Sayonara Zetsubou Sensei',\n",
|
||
" 'Jormungand',\n",
|
||
" 'Kindaichi Shounen no Jikenbo (TV)',\n",
|
||
" 'Mobile Suit Gundam: Iron-Blooded Orphans',\n",
|
||
" 'Shin Mazinger Shougeki! Z-hen',\n",
|
||
" 'Tentai Senshi Sunred',\n",
|
||
" 'Yuusha-Ou GaoGaiGar',\n",
|
||
" 'Bleach',\n",
|
||
" 'Chuunibyou demo Koi ga Shitai!',\n",
|
||
" 'City Hunter 3',\n",
|
||
" 'Danganronpa 3: The End of Kibougamine Gakuen - Zetsubou-hen',\n",
|
||
" 'Detective Conan Movie 08: Time Travel of the Silver Sky',\n",
|
||
" 'Detective Conan OVA 10: Kid in Trap Island',\n",
|
||
" 'Dragon Ball Kai',\n",
|
||
" 'Hetalia World Series',\n",
|
||
" 'Jungle wa Itsumo Hare nochi Guu Deluxe',\n",
|
||
" 'Kami nomi zo Shiru Sekai',\n",
|
||
" 'Kyousou Giga (TV)',\n",
|
||
" 'Magic Kaito 1412',\n",
|
||
" 'Nejimaki Seirei Senki: Tenkyou no Alderamin',\n",
|
||
" 'Plastic Memories',\n",
|
||
" 'Psycho-Pass Movie',\n",
|
||
" 'Seto no Hanayome',\n",
|
||
" 'Sidonia no Kishi: Daikyuu Wakusei Seneki',\n",
|
||
" 'Tanoshii Muumin Ikka',\n",
|
||
" 'Tasogare Otome x Amnesia',\n",
|
||
" 'Vampire Hunter D (2000)',\n",
|
||
" 'Yuru Yuri Nachuyachumi!',\n",
|
||
" 'Break Blade 3: Kyoujin no Ato',\n",
|
||
" 'Danshi Koukousei no Nichijou Specials',\n",
|
||
" 'Detective Conan Movie 09: Strategy Above the Depths',\n",
|
||
" 'Detective Conan Movie 12: Full Score of Fear',\n",
|
||
" 'Final Fantasy VII: Advent Children',\n",
|
||
" 'Free!: Eternal Summer',\n",
|
||
" 'Hakuouki Movie 1: Kyoto Ranbu',\n",
|
||
" 'Hidamari Sketch x ☆☆☆ Specials',\n",
|
||
" 'K: Missing Kings',\n",
|
||
" 'Last Exile',\n",
|
||
" 'Little Busters!: EX',\n",
|
||
" 'Mobile Suit Gundam Wing: Endless Waltz Movie',\n",
|
||
" 'Naruto: Shippuuden',\n",
|
||
" 'Pokemon: The Origin',\n",
|
||
" 'Yuru Yuri♪♪',\n",
|
||
" 'Zan Sayonara Zetsubou Sensei Bangaichi',\n",
|
||
" '3-gatsu no Lion',\n",
|
||
" '91 Days',\n",
|
||
" 'Akagami no Shirayuki-hime',\n",
|
||
" 'Drifters',\n",
|
||
" 'Gake no Ue no Ponyo',\n",
|
||
" 'Ghost in the Shell 2: Innocence',\n",
|
||
" 'Haikyuu!! Movie 1: Owari to Hajimari',\n",
|
||
" 'Haikyuu!! OVA',\n",
|
||
" 'Hoozuki no Reitetsu OVA',\n",
|
||
" 'Keroro Gunsou',\n",
|
||
" 'Lupin III: Part II',\n",
|
||
" 'Macross F Movie 1: Itsuwari no Utahime',\n",
|
||
" 'Mobile Suit Gundam Seed',\n",
|
||
" 'Nodame Cantabile Finale Special',\n",
|
||
" 'Paradise Kiss',\n",
|
||
" 'Saint Seiya: The Hades Chapter Sanctuary - Yomigaerishi Gold Saint-tachi no Shinwa',\n",
|
||
" 'Saraiya Goyou',\n",
|
||
" 'Shiki Specials',\n",
|
||
" 'Slayers Try',\n",
|
||
" 'To LOVE-Ru Darkness 2nd Specials',\n",
|
||
" 'Transformers the Movie',\n",
|
||
" 'Uchuu Senkan Yamato 2199: Hoshimeguru Hakobune',\n",
|
||
" 'Wolf's Rain',\n",
|
||
" 'Akatsuki no Yona OVA',\n",
|
||
" 'Ao no Exorcist',\n",
|
||
" 'Claymore',\n",
|
||
" 'Detective Conan: Episode One - Chiisaku Natta Meitantei',\n",
|
||
" 'Ghost in the Shell: Stand Alone Complex - Solid State Society 3D',\n",
|
||
" 'Golden Time',\n",
|
||
" 'Hadashi no Gen',\n",
|
||
" 'Hayate no Gotoku!!',\n",
|
||
" 'Jinrui wa Suitai Shimashita',\n",
|
||
" 'Kyoukai no Kanata Movie: I'll Be Here - Kako-hen - Yakusoku no Kizuna',\n",
|
||
" 'Little Witch Academia: Mahoujikake no Parade',\n",
|
||
" 'Lucky☆Star: Original na Visual to Animation',\n",
|
||
" 'New Initial D Movie: Legend 1 - Kakusei',\n",
|
||
" 'Pandora Hearts',\n",
|
||
" 'Rurouni Kenshin DVD-BOX Special Ending',\n",
|
||
" 'Berserk: Ougon Jidai-hen I - Haou no Tamago',\n",
|
||
" 'Capeta',\n",
|
||
" 'Charlotte',\n",
|
||
" 'City Hunter '91',\n",
|
||
" 'Kino no Tabi: Nanika wo Suru Tame ni - Life Goes On.',\n",
|
||
" 'Lupin the IIIrd: Jigen Daisuke no Bohyou',\n",
|
||
" 'Master Keaton OVA',\n",
|
||
" 'Mobile Suit Gundam Thunderbolt: December Sky',\n",
|
||
" 'Nisekoi',\n",
|
||
" 'Pokemon XY&Z',\n",
|
||
" 'To LOVE-Ru Darkness 2nd OVA',\n",
|
||
" 'Yamada-kun to 7-nin no Majo (TV)',\n",
|
||
" 'Aoi Bungaku Series',\n",
|
||
" 'Arashi no Yoru ni',\n",
|
||
" 'Bokura wa Minna Kawaisou',\n",
|
||
" 'Chi's Sweet Home: Atarashii Ouchi',\n",
|
||
" 'Densetsu Kyojin Ideon: Hatsudou-hen',\n",
|
||
" 'Ginga Tetsudou 999',\n",
|
||
" 'Hana yori Dango',\n",
|
||
" 'Hanasakeru Seishounen',\n",
|
||
" 'Hidamari Sketch x 365',\n",
|
||
" 'Hidamari Sketch x SP',\n",
|
||
" 'Ie Naki Ko',\n",
|
||
" 'Michiko to Hatchin',\n",
|
||
" 'New Initial D Movie: Legend 2 - Tousou',\n",
|
||
" 'Persona 3 the Movie 2: Midsummer Knight's Dream',\n",
|
||
" 'Sexy Commando Gaiden: Sugoiyo!! Masaru-san',\n",
|
||
" 'Tegamibachi Reverse',\n",
|
||
" 'Ao Haru Ride',\n",
|
||
" 'Bishoujo Senshi Sailor Moon S',\n",
|
||
" 'Digimon Adventure',\n",
|
||
" 'Furiko',\n",
|
||
" 'Heartcatch Precure!',\n",
|
||
" 'InuYasha',\n",
|
||
" 'InuYasha: Kuroi Tessaiga',\n",
|
||
" 'InuYasha: Tenka Hadou no Ken',\n",
|
||
" 'K-On!!: Keikaku!',\n",
|
||
" 'Kumo no Mukou, Yakusoku no Basho',\n",
|
||
" 'Lupin III vs. Detective Conan',\n",
|
||
" 'Mobile Suit Gundam',\n",
|
||
" 'Mobile Suit Gundam III: Encounters in Space',\n",
|
||
" 'Noragami OVA',\n",
|
||
" 'Seitokai Yakuindomo OVA',\n",
|
||
" 'Urusei Yatsura Movie 2: Beautiful Dreamer',\n",
|
||
" 'Yamato Nadeshiko Shichihenge♥',\n",
|
||
" 'Another',\n",
|
||
" 'Ansatsu Kyoushitsu (TV) 2nd Season: Kagaijugyou-hen',\n",
|
||
" 'Ao no Exorcist Movie',\n",
|
||
" 'Arslan Senki (TV)',\n",
|
||
" 'Binbougami ga!',\n",
|
||
" 'Black Jack',\n",
|
||
" 'Dungeon ni Deai wo Motomeru no wa Machigatteiru Darou ka',\n",
|
||
" 'Durarara!!x2 Shou: Watashi no Kokoro wa Nabe Moyou',\n",
|
||
" 'Hetalia World Series Specials',\n",
|
||
" 'K-On!: Live House!',\n",
|
||
" 'Kyou kara Maou!',\n",
|
||
" 'Kyoukai no Kanata',\n",
|
||
" 'Mind Game',\n",
|
||
" 'Oniisama e...',\n",
|
||
" 'Servamp Specials',\n",
|
||
" 'Shingeki no Kyojin OVA',\n",
|
||
" 'Tamayura: Sotsugyou Shashin Part 3 - Akogare',\n",
|
||
" 'The Last: Naruto the Movie',\n",
|
||
" 'The Law of Ueki',\n",
|
||
" 'Code Geass: Boukoku no Akito 2 - Hikisakareshi Yokuryuu',\n",
|
||
" 'Danganronpa 3: The End of Kibougamine Gakuen - Mirai-hen',\n",
|
||
" 'Hai to Gensou no Grimgar',\n",
|
||
" 'High School DxD New',\n",
|
||
" 'Huyao Xiao Hongniang: Yue Hong',\n",
|
||
" 'Jin-Rou',\n",
|
||
" 'K-On!',\n",
|
||
" 'Kino no Tabi: The Beautiful World - Byouki no Kuni - For You',\n",
|
||
" 'Lucky☆Star',\n",
|
||
" 'Mobile Suit Gundam Wing',\n",
|
||
" 'Mobile Suit Gundam Wing: Endless Waltz',\n",
|
||
" 'Piano no Mori',\n",
|
||
" 'Ranma ½',\n",
|
||
" 'Ranma ½ OVA',\n",
|
||
" 'Sidonia no Kishi',\n",
|
||
" 'Slayers',\n",
|
||
" 'Sora no Otoshimono: Tokeijikake no Angeloid',\n",
|
||
" 'Soukou Kihei Votoms',\n",
|
||
" 'Tantei Gakuen Q',\n",
|
||
" 'Toaru Kagaku no Railgun',\n",
|
||
" 'Uchuu Kaizoku Captain Harlock',\n",
|
||
" 'Watashi no Ashinaga Ojisan',\n",
|
||
" 'Break Blade 2: Ketsubetsu no Michi',\n",
|
||
" 'Chibi Maruko-chan',\n",
|
||
" 'Detective Conan Movie 16: The Eleventh Striker',\n",
|
||
" 'Genshiken 2',\n",
|
||
" 'Giovanni no Shima',\n",
|
||
" 'Hellsing I: Digest for Freaks',\n",
|
||
" 'Kuroko no Basket: Mou Ikkai Yarimasen ka',\n",
|
||
" 'Macross F: Close Encounter - Deculture Edition',\n",
|
||
" 'Non Non Biyori Repeat OVA',\n",
|
||
" 'Nurarihyon no Mago OVA',\n",
|
||
" 'One Piece: Episode of Luffy - Hand Island no Bouken',\n",
|
||
" 'One Punch Man Specials',\n",
|
||
" 'Seikai no Senki',\n",
|
||
" 'Sora no Otoshimono: Forte',\n",
|
||
" 'Space☆Dandy',\n",
|
||
" 'Arakawa Under the Bridge x Bridge',\n",
|
||
" 'Detective Conan Movie 10: Promo Special',\n",
|
||
" 'Elfen Lied',\n",
|
||
" 'Hachimitsu to Clover Specials',\n",
|
||
" 'Hello! Lady Lynn',\n",
|
||
" 'Kami nomi zo Shiru Sekai: Tenri-hen',\n",
|
||
" 'Kimi to Boku.',\n",
|
||
" 'Mahou Sensei Negima! Mou Hitotsu no Sekai',\n",
|
||
" 'Maria-sama ga Miteru: Haru',\n",
|
||
" 'Mobile Suit Gundam 0080: War in the Pocket',\n",
|
||
" 'Mondaiji-tachi ga Isekai kara Kuru Sou Desu yo?',\n",
|
||
" 'Nanatsu no Taizai OVA',\n",
|
||
" 'One Punch Man: Road to Hero',\n",
|
||
" 'Romeo x Juliet',\n",
|
||
" 'School Rumble Ichi Gakki Hoshuu',\n",
|
||
" 'Tamayura: Sotsugyou Shashin Part 2 - Hibiki',\n",
|
||
" 'Ajin Part 1: Shoudou',\n",
|
||
" 'Akame ga Kill!',\n",
|
||
" 'AKB0048: Next Stage',\n",
|
||
" 'Change!! Getter Robo: Sekai Saigo no Hi',\n",
|
||
" 'Death Note Rewrite',\n",
|
||
" 'Detective Conan Movie 17: Private Eye in the Distant Sea',\n",
|
||
" 'Hakuouki Sekkaroku',\n",
|
||
" 'Hoozuki no Reitetsu',\n",
|
||
" 'Kuroko no Basket NG-shuu',\n",
|
||
" 'Memories',\n",
|
||
" 'Naruto: Shippuuden Movie 6 - Road to Ninja',\n",
|
||
" 'Owari no Seraph: Nagoya Kessen-hen',\n",
|
||
" 'Seikai no Senki III',\n",
|
||
" 'Seitokai Yakuindomo*',\n",
|
||
" 'Space Cobra',\n",
|
||
" 'Toaru Majutsu no Index II',\n",
|
||
" 'Tsuritama',\n",
|
||
" 'Yowamushi Pedal Movie',\n",
|
||
" 'Yuru Yuri Nachuyachumi!+',\n",
|
||
" 'Baka to Test to Shoukanjuu',\n",
|
||
" 'Chi's Sweet Home',\n",
|
||
" 'Densetsu no Yuusha no Densetsu',\n",
|
||
" 'Fairy Tail OVA',\n",
|
||
" 'Ichigo Mashimaro OVA',\n",
|
||
" 'Kingsglaive: Final Fantasy XV',\n",
|
||
" 'Mobile Police Patlabor 2: The Movie',\n",
|
||
" 'Persona 3 the Movie 1: Spring of Birth',\n",
|
||
" 'Rozen Maiden: Ouvertüre',\n",
|
||
" 'Seikai no Monshou',\n",
|
||
" 'Shaman King',\n",
|
||
" 'Sword Art Online',\n",
|
||
" 'Tetsuwan Birdy Decode:02',\n",
|
||
" 'Bishoujo Senshi Sailor Moon Crystal Season III',\n",
|
||
" 'Bokurano',\n",
|
||
" 'Bounen no Xamdou',\n",
|
||
" 'Break Blade 6: Doukoku no Toride',\n",
|
||
" 'Detective Conan: Conan vs. Kid - Shark & Jewel',\n",
|
||
" 'Dragon Ball Z Special 2: Zetsubou e no Hankou!! Nokosareta Chousenshi - Gohan to Trunks',\n",
|
||
" 'Hakkenden: Touhou Hakken Ibun 2nd Season',\n",
|
||
" 'Hidamari Sketch x 365 Specials',\n",
|
||
" 'K: Return of Kings',\n",
|
||
" 'Kill la Kill Special',\n",
|
||
" 'Kochira Katsushikaku Kameari Kouenmae Hashutsujo (TV)',\n",
|
||
" 'Macross Plus',\n",
|
||
" 'Macross Plus Movie Edition',\n",
|
||
" 'Mitsudomoe Zouryouchuu!',\n",
|
||
" 'Prince of Tennis: Another Story - Messages From Past and Future',\n",
|
||
" 'Saint Seiya: Meiou Hades Elysion-hen',\n",
|
||
" 'To LOVE-Ru Darkness',\n",
|
||
" 'To LOVE-Ru Darkness OVA',\n",
|
||
" 'Working!!',\n",
|
||
" 'Yume-iro Pâtissière SP Professional',\n",
|
||
" 'Daa! Daa! Daa!',\n",
|
||
" 'Digimon Adventure: Bokura no War Game!',\n",
|
||
" 'Eikoku Koi Monogatari Emma',\n",
|
||
" 'Full Metal Panic!',\n",
|
||
" 'Guilty Crown',\n",
|
||
" 'Hoshi wo Ou Kodomo',\n",
|
||
" 'Ima, Soko ni Iru Boku',\n",
|
||
" 'Jigoku Shoujo Mitsuganae',\n",
|
||
" 'Kara no Kyoukai 1: Fukan Fuukei',\n",
|
||
" 'Kimagure Orange☆Road: Ano Hi ni Kaeritai',\n",
|
||
" 'Kono Subarashii Sekai ni Shukufuku wo! OVA',\n",
|
||
" 'Kubikiri Cycle: Aoiro Savant to Zaregototsukai',\n",
|
||
" 'Lupin the Third: Mine Fujiko to Iu Onna',\n",
|
||
" 'Minami-ke',\n",
|
||
" 'Mobile Suit Gundam: Char's Counterattack',\n",
|
||
" 'Naruto',\n",
|
||
" 'New Game!',\n",
|
||
" 'Shigatsu wa Kimi no Uso: Moments',\n",
|
||
" 'Top wo Nerae 2! Diebuster',\n",
|
||
" 'Baka to Test to Shoukanjuu: Matsuri',\n",
|
||
" 'Blood+',\n",
|
||
" 'Chrno Crusade',\n",
|
||
" 'Free!: FrFr - Short Movie',\n",
|
||
" 'Fruits Basket',\n",
|
||
" 'Gakuen Alice',\n",
|
||
" 'Haikyuu!! Movie 2: Shousha to Haisha',\n",
|
||
" 'Hourou Musuko',\n",
|
||
" 'Huyao Xiao Hongniang: Wangquan Fugui',\n",
|
||
" 'Shoukoujo Sara',\n",
|
||
" 'Soredemo Sekai wa Utsukushii',\n",
|
||
" 'Tenkuu no Escaflowne',\n",
|
||
" 'The Disappearance of Conan Edogawa: The Worst Two Days in History',\n",
|
||
" 'To LOVE-Ru Darkness 2nd',\n",
|
||
" 'Tokyo Ravens',\n",
|
||
" 'Aikatsu! Movie',\n",
|
||
" 'Angel Beats! Specials',\n",
|
||
" 'Aria The Animation',\n",
|
||
" 'Break Blade 1: Kakusei no Toki',\n",
|
||
" 'Crayon Shin-chan Movie 09: Arashi wo Yobu Mouretsu! Otona Teikoku no Gyakushuu',\n",
|
||
" 'Denpa-teki na Kanojo',\n",
|
||
" 'Dragon Quest: Dai no Daibouken',\n",
|
||
" 'Higashi no Eden Soushuuhen: Air Communication',\n",
|
||
" 'Ichigo Mashimaro Encore',\n",
|
||
" 'Inu x Boku SS Special',\n",
|
||
" 'Jigoku Shoujo',\n",
|
||
" 'New Initial D Movie: Legend 3 - Mugen',\n",
|
||
" 'Nobunaga Concerto',\n",
|
||
" 'Panty & Stocking with Garterbelt',\n",
|
||
" 'Poyopoyo Kansatsu Nikki',\n",
|
||
" 'Pretty Rhythm: Rainbow Live',\n",
|
||
" 'Ranma ½ Super',\n",
|
||
" 'Servant x Service',\n",
|
||
" 'Shakugan no Shana II (Second)',\n",
|
||
" 'Tales of Vesperia: The First Strike',\n",
|
||
" 'Toaru Hikuushi e no Tsuioku',\n",
|
||
" 'Towa no Quon 6: Towa no Quon',\n",
|
||
" 'Ajin',\n",
|
||
" 'Akagami no Shirayuki-hime: Nandemonai Takaramono, Kono Page',\n",
|
||
" 'Bishoujo Senshi Sailor Moon R: The Movie',\n",
|
||
" 'Code Geass: Hangyaku no Lelouch Special Edition Black Rebellion',\n",
|
||
" 'Full Metal Panic! The Second Raid: Wari to Hima na Sentaichou no Ichinichi',\n",
|
||
" 'Ga-Rei: Zero',\n",
|
||
" 'Higashi no Eden Movie II: Paradise Lost',\n",
|
||
" 'Jungle wa Itsumo Hare nochi Guu Final',\n",
|
||
" 'Kore wa Zombie Desu ka? of the Dead',\n",
|
||
" 'Kyoukai no Kanata: Shinonome',\n",
|
||
" 'Lupin III: Episode 0 "First Contact"',\n",
|
||
" 'Minami-ke Tadaima',\n",
|
||
" 'Momo e no Tegami',\n",
|
||
" 'Nurarihyon no Mago',\n",
|
||
" 'One Piece: Episode of Sabo - 3 Kyoudai no Kizuna Kiseki no Saikai to Uketsugareru Ishi',\n",
|
||
" 'Orange',\n",
|
||
" 'Over Drive',\n",
|
||
" 'R.O.D OVA',\n",
|
||
" 'Rakudai Kishi no Cavalry',\n",
|
||
" 'Ranma ½ Specials',\n",
|
||
" 'Rozen Maiden: Träumend',\n",
|
||
" 'Slam Dunk: Hoero Basketman-damashii! Hanamichi to Rukawa no Atsuki Natsu',\n",
|
||
" 'Special A',\n",
|
||
" 'Tenchi Muyou! Ryououki 2nd Season',\n",
|
||
" 'Texhnolyze',\n",
|
||
" 'Urusei Yatsura',\n",
|
||
" 'Utawarerumono',\n",
|
||
" 'Air Gear: Kuro no Hane to Nemuri no Mori - Break on the Sky',\n",
|
||
" 'Black Jack 21',\n",
|
||
" 'Digimon Adventure tri. 2: Ketsui',\n",
|
||
" 'Fushigi Yuugi',\n",
|
||
" 'Ichigo Mashimaro',\n",
|
||
" 'JoJo no Kimyou na Bouken: Phantom Blood',\n",
|
||
" 'Koyomimonogatari',\n",
|
||
" 'Mobile Suit Gundam 00 Special Edition',\n",
|
||
" 'Ojamajo Doremi Na-i-sho',\n",
|
||
" 'One Piece Movie 6: Omatsuri Danshaku to Himitsu no Shima',\n",
|
||
" 'Sengoku Basara Movie: The Last Party',\n",
|
||
" 'Shingeki no Bahamut: Genesis',\n",
|
||
" 'Tenchi Muyou! Ryououki',\n",
|
||
" 'Tonari no Kaibutsu-kun',\n",
|
||
" 'Zero no Tsukaima F',\n",
|
||
" 'Ao Haru Ride OVA',\n",
|
||
" 'Bishoujo Senshi Sailor Moon S: Kaguya Hime no Koibito',\n",
|
||
" 'Bokura wa Minna Kawaisou: Hajimete no',\n",
|
||
" 'Bungou Stray Dogs',\n",
|
||
" 'Detective Conan Movie 19: The Hellfire Sunflowers',\n",
|
||
" 'Doraemon (1979)',\n",
|
||
" 'Genshiken',\n",
|
||
" 'Ginga Tetsudou 999 (Movie)',\n",
|
||
" 'Girls und Panzer: Kore ga Hontou no Anzio-sen Desu!',\n",
|
||
" 'Hakuouki Hekketsuroku',\n",
|
||
" 'Hetalia Axis Powers',\n",
|
||
" 'Itazura na Kiss',\n",
|
||
" 'Lupin III',\n",
|
||
" 'Mahouka Koukou no Rettousei',\n",
|
||
" 'Majin Tantei Nougami Neuro',\n",
|
||
" 'Master Keaton',\n",
|
||
" 'No.6',\n",
|
||
" 'One Piece Movie 4: Dead End no Bouken',\n",
|
||
" 'Senjou no Valkyria',\n",
|
||
" 'Tegamibachi',\n",
|
||
" 'Towa no Quon 4: Guren no Shoushin',\n",
|
||
" 'Turn A Gundam',\n",
|
||
" 'Bleach Movie 4: Jigoku-hen',\n",
|
||
" 'D-Frag!',\n",
|
||
" 'Detective Conan Movie 09: Promo Special',\n",
|
||
" 'Dragon Ball Z Special 1: Tatta Hitori no Saishuu Kessen',\n",
|
||
" 'Go! Princess Precure',\n",
|
||
" 'Hayate no Gotoku!',\n",
|
||
" 'InuYasha: Kagami no Naka no Mugenjo',\n",
|
||
" 'Kanojo to Kanojo no Neko: Everything Flows',\n",
|
||
" 'Kara no Kyoukai Remix: Gate of Seventh Heaven',\n",
|
||
" 'Kino no Tabi: The Beautiful World - Tou no Kuni',\n",
|
||
" 'Kono Danshi, Ningyo Hiroimashita.',\n",
|
||
" 'Kuroko no Basket: Baka ja Katenai no yo!',\n",
|
||
" 'Kyoukai no Kanata Movie: I'll Be Here - Kako-hen',\n",
|
||
" 'Mahoujin Guru Guru',\n",
|
||
" 'One Piece: Heart of Gold',\n",
|
||
" 'Shingeki no Kyojin Movie 2: Jiyuu no Tsubasa',\n",
|
||
" 'The iDOLM@STER',\n",
|
||
" 'Trapp Ikka Monogatari',\n",
|
||
" 'Utawarerumono Specials',\n",
|
||
" 'World Trigger',\n",
|
||
" 'Yuusha-Ou GaoGaiGar Final Grand Glorious Gathering',\n",
|
||
" 'Bishoujo Senshi Sailor Moon R',\n",
|
||
" 'Black Jack (TV)',\n",
|
||
" 'Cardcaptor Sakura Movie 1',\n",
|
||
" 'Detective Conan: Black History',\n",
|
||
" 'Fullmetal Alchemist: The Conqueror of Shamballa',\n",
|
||
" 'Genshiken OVA',\n",
|
||
" 'Hal',\n",
|
||
" 'Heartcatch Precure! Movie: Hana no Miyako de Fashion Show... Desu ka!?',\n",
|
||
" 'Higashi no Eden Movie I: The King of Eden',\n",
|
||
" 'Hungry Heart: Wild Striker',\n",
|
||
" 'Initial D Battle Stage 2',\n",
|
||
" 'Kekkai Sensen',\n",
|
||
" 'Love Stage!! OVA',\n",
|
||
" 'Mahou Shoujo Lyrical Nanoha StrikerS',\n",
|
||
" 'Mousou Dairinin',\n",
|
||
" 'Muumindani no Suisei',\n",
|
||
" 'Noein: Mou Hitori no Kimi e',\n",
|
||
" 'Persona 3 the Movie 3: Falling Down',\n",
|
||
" 'Sengoku Basara Two',\n",
|
||
" 'Shakugan no Shana',\n",
|
||
" 'Soukyuu no Fafner: Dead Aggressor - Exodus 2nd Season',\n",
|
||
" 'Taiyou no Ko Esteban',\n",
|
||
" 'Toriko',\n",
|
||
" 'UN-GO: Inga-ron',\n",
|
||
" 'Crayon Shin-chan',\n",
|
||
" 'Diamond no Ace OVA',\n",
|
||
" 'Doraemon Movie 31: Shin Nobita to Tetsujin Heidan - Habatake Tenshi-tachi',\n",
|
||
" 'Flip Flappers',\n",
|
||
" 'GetBackers',\n",
|
||
" 'K',\n",
|
||
" 'Katekyo Hitman Reborn! Special',\n",
|
||
" 'Kekkaishi',\n",
|
||
" 'Kuroshitsuji II Specials',\n",
|
||
" ...]"
|
||
]
|
||
},
|
||
"execution_count": 16,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение списка значений из индекса\n",
|
||
"\n",
|
||
"anime_modified = anime.set_index('name')\n",
|
||
"anime_modified.index.tolist()\n",
|
||
"# anime_modified"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 17,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"['anime_id', 'name', 'genre', 'type', 'episodes', 'rating', 'members']"
|
||
]
|
||
},
|
||
"execution_count": 17,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение списка значений столбцов\n",
|
||
"\n",
|
||
"anime.columns.tolist()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Добавление данных в датафрейм и удаление их из него"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 18,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"\n",
|
||
" genre type episodes rating \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 9.37 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 9.26 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.25 \n",
|
||
"\n",
|
||
" members train set \n",
|
||
"0 200630 True \n",
|
||
"1 793665 True \n",
|
||
"2 114262 True "
|
||
]
|
||
},
|
||
"execution_count": 18,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Присоединение к датафрейму нового столбца с заданным значением\n",
|
||
"\n",
|
||
"anime['train set'] = True\n",
|
||
"anime.head(3)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 19,
|
||
"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>name</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>1</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>64</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>51</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>24</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>Gintama&#039;</td>\n",
|
||
" <td>51</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" name episodes\n",
|
||
"0 Kimi no Na wa. 1\n",
|
||
"1 Fullmetal Alchemist: Brotherhood 64\n",
|
||
"2 Gintama° 51\n",
|
||
"3 Steins;Gate 24\n",
|
||
"4 Gintama' 51"
|
||
]
|
||
},
|
||
"execution_count": 19,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Создание нового датафрейма из подмножества столбцов\n",
|
||
"\n",
|
||
"anime[['name','episodes']].head()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 20,
|
||
"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>name</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>9.17</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>Gintama&#039;</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.16</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" name type episodes rating train set\n",
|
||
"0 Kimi no Na wa. Movie 1 9.37 True\n",
|
||
"1 Fullmetal Alchemist: Brotherhood TV 64 9.26 True\n",
|
||
"2 Gintama° TV 51 9.25 True\n",
|
||
"3 Steins;Gate TV 24 9.17 True\n",
|
||
"4 Gintama' TV 51 9.16 True"
|
||
]
|
||
},
|
||
"execution_count": 20,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Удаление заданных столбцов\n",
|
||
"\n",
|
||
"anime.drop(['anime_id', 'genre', 'members'], axis=1).head()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 46,
|
||
"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>id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>power level</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>Bob</td>\n",
|
||
" <td>8000</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>2</td>\n",
|
||
" <td>Sally</td>\n",
|
||
" <td>9000</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>3</td>\n",
|
||
" <td>Scott</td>\n",
|
||
" <td>20</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>6</td>\n",
|
||
" <td>BobSallyScott</td>\n",
|
||
" <td>17020</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" id name power level\n",
|
||
"0 1 Bob 8000\n",
|
||
"1 2 Sally 9000\n",
|
||
"2 3 Scott 20\n",
|
||
"3 6 BobSallyScott 17020"
|
||
]
|
||
},
|
||
"execution_count": 46,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Добавление в датафрейм строки с суммой значений из других строк\n",
|
||
"# Если используется RangeIndex - стандартная нумерация\n",
|
||
"\n",
|
||
"df = pd.DataFrame([[1,'Bob', 8000],\n",
|
||
" [2,'Sally', 9000],\n",
|
||
" [3,'Scott', 20]], columns=['id','name', 'power level'])\n",
|
||
"new_row_sum = df.sum(axis=0)\n",
|
||
"\n",
|
||
"# df.append(df.sum(axis=0), ignore_index=True) # устаревшее\n",
|
||
"df.loc[len(df)] = new_row_sum # only use with a RangeIndex!\n",
|
||
"df"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 47,
|
||
"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>id</th>\n",
|
||
" <th>power level</th>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>name</th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>Bob</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>8000</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Sally</th>\n",
|
||
" <td>2</td>\n",
|
||
" <td>9000</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Scott</th>\n",
|
||
" <td>3</td>\n",
|
||
" <td>20</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>BobSallyScott</th>\n",
|
||
" <td>6</td>\n",
|
||
" <td>17020</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" id power level\n",
|
||
"name \n",
|
||
"Bob 1 8000\n",
|
||
"Sally 2 9000\n",
|
||
"Scott 3 20\n",
|
||
"BobSallyScott 6 17020"
|
||
]
|
||
},
|
||
"execution_count": 47,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Добавление в датафрейм строки с суммой значений из других строк\n",
|
||
"# Если используются поля как индексы\n",
|
||
"\n",
|
||
"df = pd.DataFrame([[1,'Bob', 8000],\n",
|
||
" [2,'Sally', 9000],\n",
|
||
" [3,'Scott', 20]], columns=['id','name', 'power level'])\n",
|
||
"new_row_sum = df.sum(axis=0)\n",
|
||
"\n",
|
||
"df = df.set_index(\"name\")\n",
|
||
"df = pd.concat([df, pd.DataFrame([new_row_sum]).set_index(\"name\")]) # , ignore_index=True # - использовать с RangeIndex, когда неважно конкретное значение идентификатора\n",
|
||
"df"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Комбинирование датафреймов"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 52,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>9253</td>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>Sci-Fi, Thriller</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>9.17</td>\n",
|
||
" <td>673572</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"3 9253 Steins;Gate \n",
|
||
"\n",
|
||
" genre type episodes rating \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 9.37 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 9.26 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.25 \n",
|
||
"3 Sci-Fi, Thriller TV 24 9.17 \n",
|
||
"\n",
|
||
" members train set \n",
|
||
"0 200630 True \n",
|
||
"1 793665 True \n",
|
||
"2 114262 True \n",
|
||
"3 673572 True "
|
||
]
|
||
},
|
||
"execution_count": 52,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Конкатенация двух датафреймов\n",
|
||
"\n",
|
||
"df1 = anime[0:2]\n",
|
||
"df2 = anime[2:4]\n",
|
||
"pd.concat([df1, df2], ignore_index=True)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 59,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>9253</td>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>Sci-Fi, Thriller</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>9.17</td>\n",
|
||
" <td>673572</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>9969</td>\n",
|
||
" <td>Gintama&#039;</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.16</td>\n",
|
||
" <td>151266</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"3 9253 Steins;Gate \n",
|
||
"4 9969 Gintama' \n",
|
||
"\n",
|
||
" genre type episodes rating \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 9.37 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 9.26 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.25 \n",
|
||
"3 Sci-Fi, Thriller TV 24 9.17 \n",
|
||
"4 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.16 \n",
|
||
"\n",
|
||
" members train set \n",
|
||
"0 200630 True \n",
|
||
"1 793665 True \n",
|
||
"2 114262 True \n",
|
||
"3 673572 True \n",
|
||
"4 151266 True "
|
||
]
|
||
},
|
||
"execution_count": 59,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"anime.head()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 56,
|
||
"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>user_id</th>\n",
|
||
" <th>anime_id</th>\n",
|
||
" <th>rating_rating</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating_anime</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>20</td>\n",
|
||
" <td>-1</td>\n",
|
||
" <td>Naruto</td>\n",
|
||
" <td>Action, Comedy, Martial Arts, Shounen, Super P...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>220</td>\n",
|
||
" <td>7.81</td>\n",
|
||
" <td>683297</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>-1</td>\n",
|
||
" <td>School Rumble</td>\n",
|
||
" <td>Comedy, Romance, School, Shounen</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>26</td>\n",
|
||
" <td>8.06</td>\n",
|
||
" <td>178553</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>79</td>\n",
|
||
" <td>-1</td>\n",
|
||
" <td>Shuffle!</td>\n",
|
||
" <td>Comedy, Drama, Ecchi, Fantasy, Harem, Magic, R...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>7.31</td>\n",
|
||
" <td>158772</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>226</td>\n",
|
||
" <td>-1</td>\n",
|
||
" <td>Elfen Lied</td>\n",
|
||
" <td>Action, Drama, Horror, Psychological, Romance,...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>13</td>\n",
|
||
" <td>7.85</td>\n",
|
||
" <td>623511</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>1</td>\n",
|
||
" <td>241</td>\n",
|
||
" <td>-1</td>\n",
|
||
" <td>Girls Bravo: First Season</td>\n",
|
||
" <td>Comedy, Ecchi, Fantasy, Harem, Romance, School</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>11</td>\n",
|
||
" <td>6.69</td>\n",
|
||
" <td>84395</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" user_id anime_id rating_rating name \\\n",
|
||
"0 1 20 -1 Naruto \n",
|
||
"1 1 24 -1 School Rumble \n",
|
||
"2 1 79 -1 Shuffle! \n",
|
||
"3 1 226 -1 Elfen Lied \n",
|
||
"4 1 241 -1 Girls Bravo: First Season \n",
|
||
"\n",
|
||
" genre type episodes \\\n",
|
||
"0 Action, Comedy, Martial Arts, Shounen, Super P... TV 220 \n",
|
||
"1 Comedy, Romance, School, Shounen TV 26 \n",
|
||
"2 Comedy, Drama, Ecchi, Fantasy, Harem, Magic, R... TV 24 \n",
|
||
"3 Action, Drama, Horror, Psychological, Romance,... TV 13 \n",
|
||
"4 Comedy, Ecchi, Fantasy, Harem, Romance, School TV 11 \n",
|
||
"\n",
|
||
" rating_anime members train set \n",
|
||
"0 7.81 683297 True \n",
|
||
"1 8.06 178553 True \n",
|
||
"2 7.31 158772 True \n",
|
||
"3 7.85 623511 True \n",
|
||
"4 6.69 84395 True "
|
||
]
|
||
},
|
||
"execution_count": 56,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Слияние датафреймов\n",
|
||
"# функция df.merge похожа на левое соединение SQL!\n",
|
||
"\n",
|
||
"rating.head().merge(anime, left_on='anime_id', right_on='anime_id', suffixes=('_rating', '_anime'))"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Фильтрация"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 57,
|
||
"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>anime_id</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>name</th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>Haikyuu!! Second Season</th>\n",
|
||
" <td>28891</td>\n",
|
||
" <td>Comedy, Drama, School, Shounen, Sports</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>25</td>\n",
|
||
" <td>8.93</td>\n",
|
||
" <td>179342</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Gintama</th>\n",
|
||
" <td>918</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>201</td>\n",
|
||
" <td>9.04</td>\n",
|
||
" <td>336376</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id \\\n",
|
||
"name \n",
|
||
"Haikyuu!! Second Season 28891 \n",
|
||
"Gintama 918 \n",
|
||
"\n",
|
||
" genre \\\n",
|
||
"name \n",
|
||
"Haikyuu!! Second Season Comedy, Drama, School, Shounen, Sports \n",
|
||
"Gintama Action, Comedy, Historical, Parody, Samurai, S... \n",
|
||
"\n",
|
||
" type episodes rating members \n",
|
||
"name \n",
|
||
"Haikyuu!! Second Season TV 25 8.93 179342 \n",
|
||
"Gintama TV 201 9.04 336376 "
|
||
]
|
||
},
|
||
"execution_count": 57,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение строк с нужными индексными значениями\n",
|
||
"\n",
|
||
"anime_modified.loc[['Haikyuu!! Second Season','Gintama']]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 64,
|
||
"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>anime_id</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>name</th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>Kimi no Na wa.</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Fullmetal Alchemist: Brotherhood</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Gintama°</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id \\\n",
|
||
"name \n",
|
||
"Kimi no Na wa. 32281 \n",
|
||
"Fullmetal Alchemist: Brotherhood 5114 \n",
|
||
"Gintama° 28977 \n",
|
||
"\n",
|
||
" genre \\\n",
|
||
"name \n",
|
||
"Kimi no Na wa. Drama, Romance, School, Supernatural \n",
|
||
"Fullmetal Alchemist: Brotherhood Action, Adventure, Drama, Fantasy, Magic, Mili... \n",
|
||
"Gintama° Action, Comedy, Historical, Parody, Samurai, S... \n",
|
||
"\n",
|
||
" type episodes rating members \n",
|
||
"name \n",
|
||
"Kimi no Na wa. Movie 1 9.37 200630 \n",
|
||
"Fullmetal Alchemist: Brotherhood TV 64 9.26 793665 \n",
|
||
"Gintama° TV 51 9.25 114262 "
|
||
]
|
||
},
|
||
"execution_count": 64,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение строк по числовым индексам\n",
|
||
"\n",
|
||
"anime_modified.iloc[0:3] # iloc < index, loc <= index"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 66,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>9253</td>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>Sci-Fi, Thriller</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>9.17</td>\n",
|
||
" <td>673572</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>9969</td>\n",
|
||
" <td>Gintama&#039;</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.16</td>\n",
|
||
" <td>151266</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"3 9253 Steins;Gate \n",
|
||
"4 9969 Gintama' \n",
|
||
"\n",
|
||
" genre type episodes rating \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 9.37 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 9.26 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.25 \n",
|
||
"3 Sci-Fi, Thriller TV 24 9.17 \n",
|
||
"4 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.16 \n",
|
||
"\n",
|
||
" members train set \n",
|
||
"0 200630 True \n",
|
||
"1 793665 True \n",
|
||
"2 114262 True \n",
|
||
"3 673572 True \n",
|
||
"4 151266 True "
|
||
]
|
||
},
|
||
"execution_count": 66,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение строк по заданным значениям столбцов\n",
|
||
"\n",
|
||
"# anime[anime['type'] == 'TV'] \n",
|
||
"anime[anime['type'].isin(['TV', 'Movie'])].head()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 67,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"\n",
|
||
" genre type episodes rating \\\n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 9.26 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 9.25 \n",
|
||
"\n",
|
||
" members train set \n",
|
||
"1 793665 True \n",
|
||
"2 114262 True "
|
||
]
|
||
},
|
||
"execution_count": 67,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Получение среза датафрейма\n",
|
||
"\n",
|
||
"anime[1:3]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 69,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>5114</td>\n",
|
||
" <td>Fullmetal Alchemist: Brotherhood</td>\n",
|
||
" <td>Action, Adventure, Drama, Fantasy, Magic, Mili...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>64</td>\n",
|
||
" <td>9.26</td>\n",
|
||
" <td>793665</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>28977</td>\n",
|
||
" <td>Gintama°</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>114262</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>9253</td>\n",
|
||
" <td>Steins;Gate</td>\n",
|
||
" <td>Sci-Fi, Thriller</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>24</td>\n",
|
||
" <td>9.17</td>\n",
|
||
" <td>673572</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>9969</td>\n",
|
||
" <td>Gintama&#039;</td>\n",
|
||
" <td>Action, Comedy, Historical, Parody, Samurai, S...</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>9.16</td>\n",
|
||
" <td>151266</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>...</th>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>10765</th>\n",
|
||
" <td>32230</td>\n",
|
||
" <td>Xi You Ji</td>\n",
|
||
" <td>Adventure, Fantasy</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>52</td>\n",
|
||
" <td>8.07</td>\n",
|
||
" <td>89</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>10786</th>\n",
|
||
" <td>26313</td>\n",
|
||
" <td>Yakusoku: Africa Mizu to Midori</td>\n",
|
||
" <td>Drama, Kids</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.25</td>\n",
|
||
" <td>53</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>10793</th>\n",
|
||
" <td>28557</td>\n",
|
||
" <td>Yamete! Writer Asobi: Doubutsu Mura no Shoubou...</td>\n",
|
||
" <td>Drama, Kids</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>8.67</td>\n",
|
||
" <td>40</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>10847</th>\n",
|
||
" <td>26097</td>\n",
|
||
" <td>Yume no Tsuzuki</td>\n",
|
||
" <td>Drama, Kids</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>8.67</td>\n",
|
||
" <td>53</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12251</th>\n",
|
||
" <td>33960</td>\n",
|
||
" <td>Chou Do M na Hentai Mesu-tachi Otokoton Chouky...</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>Unknown</td>\n",
|
||
" <td>8.38</td>\n",
|
||
" <td>161</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"<p>583 rows × 8 columns</p>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"1 5114 Fullmetal Alchemist: Brotherhood \n",
|
||
"2 28977 Gintama° \n",
|
||
"3 9253 Steins;Gate \n",
|
||
"4 9969 Gintama' \n",
|
||
"... ... ... \n",
|
||
"10765 32230 Xi You Ji \n",
|
||
"10786 26313 Yakusoku: Africa Mizu to Midori \n",
|
||
"10793 28557 Yamete! Writer Asobi: Doubutsu Mura no Shoubou... \n",
|
||
"10847 26097 Yume no Tsuzuki \n",
|
||
"12251 33960 Chou Do M na Hentai Mesu-tachi Otokoton Chouky... \n",
|
||
"\n",
|
||
" genre type episodes \\\n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 \n",
|
||
"1 Action, Adventure, Drama, Fantasy, Magic, Mili... TV 64 \n",
|
||
"2 Action, Comedy, Historical, Parody, Samurai, S... TV 51 \n",
|
||
"3 Sci-Fi, Thriller TV 24 \n",
|
||
"4 Action, Comedy, Historical, Parody, Samurai, S... TV 51 \n",
|
||
"... ... ... ... \n",
|
||
"10765 Adventure, Fantasy TV 52 \n",
|
||
"10786 Drama, Kids OVA 1 \n",
|
||
"10793 Drama, Kids OVA 1 \n",
|
||
"10847 Drama, Kids OVA 1 \n",
|
||
"12251 Hentai OVA Unknown \n",
|
||
"\n",
|
||
" rating members train set \n",
|
||
"0 9.37 200630 True \n",
|
||
"1 9.26 793665 True \n",
|
||
"2 9.25 114262 True \n",
|
||
"3 9.17 673572 True \n",
|
||
"4 9.16 151266 True \n",
|
||
"... ... ... ... \n",
|
||
"10765 8.07 89 True \n",
|
||
"10786 9.25 53 True \n",
|
||
"10793 8.67 40 True \n",
|
||
"10847 8.67 53 True \n",
|
||
"12251 8.38 161 True \n",
|
||
"\n",
|
||
"[583 rows x 8 columns]"
|
||
]
|
||
},
|
||
"execution_count": 69,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Фильтрация по значению\n",
|
||
"\n",
|
||
"anime[anime['rating'] > 8]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Сортировка"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 70,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>10464</th>\n",
|
||
" <td>33662</td>\n",
|
||
" <td>Taka no Tsume 8: Yoshida-kun no X-Files</td>\n",
|
||
" <td>Comedy, Parody</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>10.00</td>\n",
|
||
" <td>13</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>10400</th>\n",
|
||
" <td>30120</td>\n",
|
||
" <td>Spoon-hime no Swing Kitchen</td>\n",
|
||
" <td>Adventure, Kids</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>Unknown</td>\n",
|
||
" <td>9.60</td>\n",
|
||
" <td>47</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9595</th>\n",
|
||
" <td>23005</td>\n",
|
||
" <td>Mogura no Motoro</td>\n",
|
||
" <td>Slice of Life</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.50</td>\n",
|
||
" <td>62</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>32281</td>\n",
|
||
" <td>Kimi no Na wa.</td>\n",
|
||
" <td>Drama, Romance, School, Supernatural</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.37</td>\n",
|
||
" <td>200630</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9078</th>\n",
|
||
" <td>33607</td>\n",
|
||
" <td>Kahei no Umi</td>\n",
|
||
" <td>Historical</td>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>9.33</td>\n",
|
||
" <td>44</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>...</th>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12274</th>\n",
|
||
" <td>34492</td>\n",
|
||
" <td>Nuki Doki! Tenshi to Akuma no Sakusei Battle -...</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>Unknown</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>392</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12279</th>\n",
|
||
" <td>34491</td>\n",
|
||
" <td>Sagurare Otome The Animation</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>79</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12280</th>\n",
|
||
" <td>34312</td>\n",
|
||
" <td>Saimin Class</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>Unknown</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>240</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12282</th>\n",
|
||
" <td>34388</td>\n",
|
||
" <td>Shikkoku no Shaga The Animation</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>Unknown</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>195</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12285</th>\n",
|
||
" <td>34399</td>\n",
|
||
" <td>Taimanin Asagi 3</td>\n",
|
||
" <td>Demons, Hentai, Supernatural</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>Unknown</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>485</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"<p>12294 rows × 8 columns</p>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"10464 33662 Taka no Tsume 8: Yoshida-kun no X-Files \n",
|
||
"10400 30120 Spoon-hime no Swing Kitchen \n",
|
||
"9595 23005 Mogura no Motoro \n",
|
||
"0 32281 Kimi no Na wa. \n",
|
||
"9078 33607 Kahei no Umi \n",
|
||
"... ... ... \n",
|
||
"12274 34492 Nuki Doki! Tenshi to Akuma no Sakusei Battle -... \n",
|
||
"12279 34491 Sagurare Otome The Animation \n",
|
||
"12280 34312 Saimin Class \n",
|
||
"12282 34388 Shikkoku no Shaga The Animation \n",
|
||
"12285 34399 Taimanin Asagi 3 \n",
|
||
"\n",
|
||
" genre type episodes rating members \\\n",
|
||
"10464 Comedy, Parody Movie 1 10.00 13 \n",
|
||
"10400 Adventure, Kids TV Unknown 9.60 47 \n",
|
||
"9595 Slice of Life Movie 1 9.50 62 \n",
|
||
"0 Drama, Romance, School, Supernatural Movie 1 9.37 200630 \n",
|
||
"9078 Historical Movie 1 9.33 44 \n",
|
||
"... ... ... ... ... ... \n",
|
||
"12274 Hentai OVA Unknown NaN 392 \n",
|
||
"12279 Hentai OVA 1 NaN 79 \n",
|
||
"12280 Hentai OVA Unknown NaN 240 \n",
|
||
"12282 Hentai OVA Unknown NaN 195 \n",
|
||
"12285 Demons, Hentai, Supernatural OVA Unknown NaN 485 \n",
|
||
"\n",
|
||
" train set \n",
|
||
"10464 True \n",
|
||
"10400 True \n",
|
||
"9595 True \n",
|
||
"0 True \n",
|
||
"9078 True \n",
|
||
"... ... \n",
|
||
"12274 True \n",
|
||
"12279 True \n",
|
||
"12280 True \n",
|
||
"12282 True \n",
|
||
"12285 True \n",
|
||
"\n",
|
||
"[12294 rows x 8 columns]"
|
||
]
|
||
},
|
||
"execution_count": 70,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# простой пример\n",
|
||
"\n",
|
||
"anime.sort_values('rating', ascending=False)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Агрегирование"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 73,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>type</th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>Movie</th>\n",
|
||
" <td>2348</td>\n",
|
||
" <td>2348</td>\n",
|
||
" <td>2306</td>\n",
|
||
" <td>2348</td>\n",
|
||
" <td>2297</td>\n",
|
||
" <td>2348</td>\n",
|
||
" <td>2348</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Music</th>\n",
|
||
" <td>488</td>\n",
|
||
" <td>488</td>\n",
|
||
" <td>488</td>\n",
|
||
" <td>488</td>\n",
|
||
" <td>488</td>\n",
|
||
" <td>488</td>\n",
|
||
" <td>488</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>ONA</th>\n",
|
||
" <td>659</td>\n",
|
||
" <td>659</td>\n",
|
||
" <td>655</td>\n",
|
||
" <td>659</td>\n",
|
||
" <td>652</td>\n",
|
||
" <td>659</td>\n",
|
||
" <td>659</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>OVA</th>\n",
|
||
" <td>3311</td>\n",
|
||
" <td>3311</td>\n",
|
||
" <td>3310</td>\n",
|
||
" <td>3311</td>\n",
|
||
" <td>3285</td>\n",
|
||
" <td>3311</td>\n",
|
||
" <td>3311</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>Special</th>\n",
|
||
" <td>1676</td>\n",
|
||
" <td>1676</td>\n",
|
||
" <td>1674</td>\n",
|
||
" <td>1676</td>\n",
|
||
" <td>1671</td>\n",
|
||
" <td>1676</td>\n",
|
||
" <td>1676</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>TV</th>\n",
|
||
" <td>3787</td>\n",
|
||
" <td>3787</td>\n",
|
||
" <td>3777</td>\n",
|
||
" <td>3787</td>\n",
|
||
" <td>3671</td>\n",
|
||
" <td>3787</td>\n",
|
||
" <td>3787</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name genre episodes rating members train set\n",
|
||
"type \n",
|
||
"Movie 2348 2348 2306 2348 2297 2348 2348\n",
|
||
"Music 488 488 488 488 488 488 488\n",
|
||
"ONA 659 659 655 659 652 659 659\n",
|
||
"OVA 3311 3311 3310 3311 3285 3311 3311\n",
|
||
"Special 1676 1676 1674 1676 1671 1676 1676\n",
|
||
"TV 3787 3787 3777 3787 3671 3787 3787"
|
||
]
|
||
},
|
||
"execution_count": 73,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Функция df.groupby и подсчёт количества записей\n",
|
||
"\n",
|
||
"anime.groupby('type').count()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 77,
|
||
"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>type</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>name</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>Movie</td>\n",
|
||
" <td>6.318058</td>\n",
|
||
" <td>2348</td>\n",
|
||
" <td>Yasuji no Pornorama: Yacchimae!!</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>Music</td>\n",
|
||
" <td>5.588996</td>\n",
|
||
" <td>488</td>\n",
|
||
" <td>Yuu no Mahou</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>ONA</td>\n",
|
||
" <td>5.643298</td>\n",
|
||
" <td>659</td>\n",
|
||
" <td>Docchi mo Maid</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>6.375221</td>\n",
|
||
" <td>3311</td>\n",
|
||
" <td>Violence Gekiga Shin David no Hoshi: Inma Dens...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>Special</td>\n",
|
||
" <td>6.523501</td>\n",
|
||
" <td>1676</td>\n",
|
||
" <td>Junjou Shoujo Et Cetera Specials</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>6.902299</td>\n",
|
||
" <td>3787</td>\n",
|
||
" <td>Yuuki Yuuna wa Yuusha de Aru: Yuusha no Shou</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" type rating episodes \\\n",
|
||
"0 Movie 6.318058 2348 \n",
|
||
"1 Music 5.588996 488 \n",
|
||
"2 ONA 5.643298 659 \n",
|
||
"3 OVA 6.375221 3311 \n",
|
||
"4 Special 6.523501 1676 \n",
|
||
"5 TV 6.902299 3787 \n",
|
||
"\n",
|
||
" name \n",
|
||
"0 Yasuji no Pornorama: Yacchimae!! \n",
|
||
"1 Yuu no Mahou \n",
|
||
"2 Docchi mo Maid \n",
|
||
"3 Violence Gekiga Shin David no Hoshi: Inma Dens... \n",
|
||
"4 Junjou Shoujo Et Cetera Specials \n",
|
||
"5 Yuuki Yuuna wa Yuusha de Aru: Yuusha no Shou "
|
||
]
|
||
},
|
||
"execution_count": 77,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Функция df.groupby и агрегирование столбцов различными способами\n",
|
||
"\n",
|
||
"anime.groupby([\"type\"]).agg({\n",
|
||
" \"rating\": \"mean\",\n",
|
||
" \"episodes\": \"count\",\n",
|
||
" \"name\": \"last\"\n",
|
||
"}).reset_index()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 87,
|
||
"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>anime_id</th>\n",
|
||
" <th>6</th>\n",
|
||
" <th>15</th>\n",
|
||
" <th>17</th>\n",
|
||
" <th>18</th>\n",
|
||
" <th>20</th>\n",
|
||
" <th>22</th>\n",
|
||
" <th>24</th>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>user_id</th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>8</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>8</td>\n",
|
||
" <td>6</td>\n",
|
||
" <td>6</td>\n",
|
||
" <td>6</td>\n",
|
||
" <td>6</td>\n",
|
||
" <td>5</td>\n",
|
||
" <td>1</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>0</td>\n",
|
||
" <td>7</td>\n",
|
||
" <td>0</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
"anime_id 6 15 17 18 20 22 24\n",
|
||
"user_id \n",
|
||
"3 0 0 0 0 8 0 0\n",
|
||
"5 8 6 6 6 6 5 1\n",
|
||
"7 0 0 0 0 0 7 0"
|
||
]
|
||
},
|
||
"execution_count": 87,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Создание сводной таблицы\n",
|
||
"\n",
|
||
"tmp_df = rating.copy()\n",
|
||
"tmp_df.sort_values('user_id', ascending=True, inplace=True)\n",
|
||
"tmp_df = tmp_df[tmp_df.user_id < 10] \n",
|
||
"tmp_df = tmp_df[tmp_df.anime_id < 30]\n",
|
||
"tmp_df = tmp_df[tmp_df.rating != -1]\n",
|
||
"pd.pivot_table(tmp_df, values='rating', index=['user_id'], columns=['anime_id'], aggfunc='sum', fill_value=0)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Очистка данных"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 89,
|
||
"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>anime_id</th>\n",
|
||
" <th>6</th>\n",
|
||
" <th>15</th>\n",
|
||
" <th>17</th>\n",
|
||
" <th>18</th>\n",
|
||
" <th>20</th>\n",
|
||
" <th>22</th>\n",
|
||
" <th>24</th>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>user_id</th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" <th></th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>8.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>8.0</td>\n",
|
||
" <td>6.0</td>\n",
|
||
" <td>6.0</td>\n",
|
||
" <td>6.0</td>\n",
|
||
" <td>6.0</td>\n",
|
||
" <td>5.0</td>\n",
|
||
" <td>1.0</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" <td>7.0</td>\n",
|
||
" <td>0.0</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
"anime_id 6 15 17 18 20 22 24\n",
|
||
"user_id \n",
|
||
"3 0.0 0.0 0.0 0.0 8.0 0.0 0.0\n",
|
||
"5 8.0 6.0 6.0 6.0 6.0 5.0 1.0\n",
|
||
"7 0.0 0.0 0.0 0.0 0.0 7.0 0.0"
|
||
]
|
||
},
|
||
"execution_count": 89,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Запись в ячейки, содержащие значение NaN, какого-то другого значения\n",
|
||
"\n",
|
||
"pivot = pd.pivot_table(tmp_df, values='rating', index=['user_id'], columns=['anime_id'], aggfunc='sum')\n",
|
||
"pivot.fillna(0)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"## Другие полезные возможности"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 90,
|
||
"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>anime_id</th>\n",
|
||
" <th>name</th>\n",
|
||
" <th>genre</th>\n",
|
||
" <th>type</th>\n",
|
||
" <th>episodes</th>\n",
|
||
" <th>rating</th>\n",
|
||
" <th>members</th>\n",
|
||
" <th>train set</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>4133</th>\n",
|
||
" <td>29697</td>\n",
|
||
" <td>Prince of Tennis: Message in a Bottle</td>\n",
|
||
" <td>Comedy, School, Shounen, Sports</td>\n",
|
||
" <td>Special</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>6.80</td>\n",
|
||
" <td>813</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6201</th>\n",
|
||
" <td>25967</td>\n",
|
||
" <td>Backkom Sports</td>\n",
|
||
" <td>Comedy, Kids, Sports</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>52</td>\n",
|
||
" <td>6.21</td>\n",
|
||
" <td>131</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4942</th>\n",
|
||
" <td>3154</td>\n",
|
||
" <td>Gatchaman</td>\n",
|
||
" <td>Action, Adventure, Martial Arts, Sci-Fi, Shoun...</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>3</td>\n",
|
||
" <td>6.59</td>\n",
|
||
" <td>1407</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>331</th>\n",
|
||
" <td>889</td>\n",
|
||
" <td>Black Lagoon</td>\n",
|
||
" <td>Action, Seinen</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>12</td>\n",
|
||
" <td>8.17</td>\n",
|
||
" <td>332562</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6112</th>\n",
|
||
" <td>6385</td>\n",
|
||
" <td>Pokemon: Slowking no Ichinichi</td>\n",
|
||
" <td>Fantasy, Kids</td>\n",
|
||
" <td>Special</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>6.25</td>\n",
|
||
" <td>6090</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>...</th>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" <td>...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2556</th>\n",
|
||
" <td>1215</td>\n",
|
||
" <td>Mobile Suit Gundam Seed C.E.73: Stargazer</td>\n",
|
||
" <td>Mecha, Military, Sci-Fi, Space</td>\n",
|
||
" <td>ONA</td>\n",
|
||
" <td>3</td>\n",
|
||
" <td>7.23</td>\n",
|
||
" <td>15203</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7310</th>\n",
|
||
" <td>17048</td>\n",
|
||
" <td>Choujin Locke Special</td>\n",
|
||
" <td>Action, Sci-Fi, Super Power</td>\n",
|
||
" <td>Special</td>\n",
|
||
" <td>1</td>\n",
|
||
" <td>5.55</td>\n",
|
||
" <td>171</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4893</th>\n",
|
||
" <td>9881</td>\n",
|
||
" <td>Chou Supercar Gattiger</td>\n",
|
||
" <td>Action, Cars, Sci-Fi</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>25</td>\n",
|
||
" <td>6.60</td>\n",
|
||
" <td>199</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>11643</th>\n",
|
||
" <td>3538</td>\n",
|
||
" <td>Dorei Kaigo</td>\n",
|
||
" <td>Hentai</td>\n",
|
||
" <td>OVA</td>\n",
|
||
" <td>3</td>\n",
|
||
" <td>6.32</td>\n",
|
||
" <td>1959</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2708</th>\n",
|
||
" <td>8206</td>\n",
|
||
" <td>Hime Chen! Otogi Chikku Idol Lilpri</td>\n",
|
||
" <td>Magic, Shoujo</td>\n",
|
||
" <td>TV</td>\n",
|
||
" <td>51</td>\n",
|
||
" <td>7.18</td>\n",
|
||
" <td>6118</td>\n",
|
||
" <td>True</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"<p>3074 rows × 8 columns</p>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" anime_id name \\\n",
|
||
"4133 29697 Prince of Tennis: Message in a Bottle \n",
|
||
"6201 25967 Backkom Sports \n",
|
||
"4942 3154 Gatchaman \n",
|
||
"331 889 Black Lagoon \n",
|
||
"6112 6385 Pokemon: Slowking no Ichinichi \n",
|
||
"... ... ... \n",
|
||
"2556 1215 Mobile Suit Gundam Seed C.E.73: Stargazer \n",
|
||
"7310 17048 Choujin Locke Special \n",
|
||
"4893 9881 Chou Supercar Gattiger \n",
|
||
"11643 3538 Dorei Kaigo \n",
|
||
"2708 8206 Hime Chen! Otogi Chikku Idol Lilpri \n",
|
||
"\n",
|
||
" genre type episodes \\\n",
|
||
"4133 Comedy, School, Shounen, Sports Special 1 \n",
|
||
"6201 Comedy, Kids, Sports TV 52 \n",
|
||
"4942 Action, Adventure, Martial Arts, Sci-Fi, Shoun... OVA 3 \n",
|
||
"331 Action, Seinen TV 12 \n",
|
||
"6112 Fantasy, Kids Special 1 \n",
|
||
"... ... ... ... \n",
|
||
"2556 Mecha, Military, Sci-Fi, Space ONA 3 \n",
|
||
"7310 Action, Sci-Fi, Super Power Special 1 \n",
|
||
"4893 Action, Cars, Sci-Fi TV 25 \n",
|
||
"11643 Hentai OVA 3 \n",
|
||
"2708 Magic, Shoujo TV 51 \n",
|
||
"\n",
|
||
" rating members train set \n",
|
||
"4133 6.80 813 True \n",
|
||
"6201 6.21 131 True \n",
|
||
"4942 6.59 1407 True \n",
|
||
"331 8.17 332562 True \n",
|
||
"6112 6.25 6090 True \n",
|
||
"... ... ... ... \n",
|
||
"2556 7.23 15203 True \n",
|
||
"7310 5.55 171 True \n",
|
||
"4893 6.60 199 True \n",
|
||
"11643 6.32 1959 True \n",
|
||
"2708 7.18 6118 True \n",
|
||
"\n",
|
||
"[3074 rows x 8 columns]"
|
||
]
|
||
},
|
||
"execution_count": 90,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"# Отбор случайных образцов из набора данных\n",
|
||
"\n",
|
||
"anime.sample(frac=0.25)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 91,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"0 anime_id 32281\n",
|
||
"name Kimi no Na wa.\n",
|
||
"genre Drama, Romance, School, Supernatural\n",
|
||
"type Movie\n",
|
||
"episodes 1\n",
|
||
"rating 9.37\n",
|
||
"members 200630\n",
|
||
"train set True\n",
|
||
"Name: 0, dtype: object\n",
|
||
"1 anime_id 5114\n",
|
||
"name Fullmetal Alchemist: Brotherhood\n",
|
||
"genre Action, Adventure, Drama, Fantasy, Magic, Mili...\n",
|
||
"type TV\n",
|
||
"episodes 64\n",
|
||
"rating 9.26\n",
|
||
"members 793665\n",
|
||
"train set True\n",
|
||
"Name: 1, dtype: object\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"# Перебор строк датафрейма\n",
|
||
"\n",
|
||
"for idx,row in anime[:2].iterrows():\n",
|
||
" print(idx, row)"
|
||
]
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": ".venv",
|
||
"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.11.9"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 2
|
||
}
|