Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
[pandas] [tutorial] check if a group of columns are missing
jack06215
Sep 26th, 2020
(
edited
)
141
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
pattern_1
=
[
'var_4'
,
'var_5'
]
df
[
'flag_1'
]
=
df
[
pattern_1
]
.
isnull
(
)
.
any
(
axis
=
1
)
.
astype
(
int
)
pattern_2
=
[
'var_1'
,
'var_3'
]
df
[
'flag_2'
]
=
df
[
pattern_2
]
.
isnull
(
)
.
any
(
axis
=
1
)
.
astype
(
int
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 2 min ago | 0.29 KB
topological_sort_demo
Python | 3 min ago | 4.11 KB
FlintLock
Lua | 3 min ago | 0.78 KB
FlintLock
Lua | 3 min ago | 0.79 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 8 min ago | 0.29 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 14 min ago | 0.28 KB
Musket
Lua | 14 min ago | 0.73 KB
Musket
Lua | 15 min ago | 0.72 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!