This website requires JavaScript.
Explore
Help
Sign In
zhangyuqing
/
pythonbook
Watch
1
Star
0
Fork
You've already forked pythonbook
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
master
pythonbook
/
实例学习pandas
/
3 替换函数.py
6 lines
85 B
Python
Raw
Permalink
Blame
History
import
pandas
as
pd
s
=
pd
.
Series
(
[
-
1
,
1.2345
,
100
,
-
50
]
)
print
(
s
.
where
(
s
<
0
,
100
)
)
Reference in New Issue
View Git Blame
Copy Permalink