Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
4
5
6
7
import
numpy
as
np
import
pandas
as
pd
data = [
23
,
13
,
5
,
3
,
41
,
33
]
indicator_values = pd.get_dummies(pd.qcut(data,
2
))
print(
"indicator_values:"
, indicator_values)
Enter to Rename, Shift+Enter to Preview
Run