Alejandro Cremades commited on
Commit
00af251
·
1 Parent(s): 41aa31c

Updated "DataFrame.any()" call

Browse files
Files changed (1) hide show
  1. middleschool-cardlist.ipynb +4 -12
middleschool-cardlist.ipynb CHANGED
@@ -75,7 +75,7 @@
75
  },
76
  {
77
  "cell_type": "code",
78
- "execution_count": 13,
79
  "metadata": {},
80
  "outputs": [
81
  {
@@ -146,7 +146,7 @@
146
  },
147
  {
148
  "cell_type": "code",
149
- "execution_count": 14,
150
  "metadata": {},
151
  "outputs": [
152
  {
@@ -157,14 +157,6 @@
157
  "Banned cards: 26\n",
158
  "Cards legal by set and not banned: 5774\n"
159
  ]
160
- },
161
- {
162
- "name": "stderr",
163
- "output_type": "stream",
164
- "text": [
165
- "/var/folders/jc/cq3r6hh554b4k01f90f6f2jm0000gn/T/ipykernel_28564/1478117800.py:29: FutureWarning: In a future version of pandas all arguments of DataFrame.any and Series.any will be keyword-only.\n",
166
- " middleschool_df.name.tolist()).isin(banlist).any(1).values]\n"
167
- ]
168
  }
169
  ],
170
  "source": [
@@ -196,7 +188,7 @@
196
  " \"Yawgmoth's Will\"]\n",
197
  "print('Cards legal by set:', middleschool_df.shape[0])\n",
198
  "banned_df = middleschool_df[pd.DataFrame(\n",
199
- " middleschool_df.name.tolist()).isin(banlist).any(1).values]\n",
200
  "print('Banned cards:', banned_df.shape[0])\n",
201
  "middleschool_df = pd.concat(\n",
202
  " [middleschool_df, banned_df]).drop_duplicates(keep=False)\n",
@@ -214,7 +206,7 @@
214
  },
215
  {
216
  "cell_type": "code",
217
- "execution_count": 15,
218
  "metadata": {},
219
  "outputs": [],
220
  "source": [
 
75
  },
76
  {
77
  "cell_type": "code",
78
+ "execution_count": 18,
79
  "metadata": {},
80
  "outputs": [
81
  {
 
146
  },
147
  {
148
  "cell_type": "code",
149
+ "execution_count": 19,
150
  "metadata": {},
151
  "outputs": [
152
  {
 
157
  "Banned cards: 26\n",
158
  "Cards legal by set and not banned: 5774\n"
159
  ]
 
 
 
 
 
 
 
 
160
  }
161
  ],
162
  "source": [
 
188
  " \"Yawgmoth's Will\"]\n",
189
  "print('Cards legal by set:', middleschool_df.shape[0])\n",
190
  "banned_df = middleschool_df[pd.DataFrame(\n",
191
+ " middleschool_df.name.tolist()).isin(banlist).any(axis=1).values]\n",
192
  "print('Banned cards:', banned_df.shape[0])\n",
193
  "middleschool_df = pd.concat(\n",
194
  " [middleschool_df, banned_df]).drop_duplicates(keep=False)\n",
 
206
  },
207
  {
208
  "cell_type": "code",
209
+ "execution_count": 20,
210
  "metadata": {},
211
  "outputs": [],
212
  "source": [