Skip to content

Commit dd0570a

Browse files
authored
Merge pull request #234 from HDI-Project/issue-222-add-pandas-dataframe-set-index-primitive
Add pandas.DataFrame.set_index
2 parents a592c84 + 6e30fb0 commit dd0570a

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "pandas.DataFrame.set_index",
3+
"contributors": [
4+
"Jose David Perez <jose@pythiac.com>"
5+
],
6+
"documentation": "https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.set_index.html",
7+
"description": "Set the DataFrame index using existing columns.",
8+
"classifiers": {
9+
"type": "helper",
10+
"subtype": "fitting"
11+
},
12+
"modalities": [],
13+
"primitive": "pandas.DataFrame.set_index",
14+
"produce": {
15+
"args": [
16+
{
17+
"name": "X",
18+
"keyword": "self",
19+
"type": "pandas.DataFrame"
20+
},
21+
{
22+
"name": "keys",
23+
"type": "label or array-like or list of labels/arrays"
24+
}
25+
],
26+
"output": [
27+
{
28+
"name": "X",
29+
"type": "pandas.DataFrame"
30+
}
31+
]
32+
},
33+
"hyperparameters": {
34+
"fixed": {
35+
"drop": {
36+
"type": "bool",
37+
"default": true,
38+
"description": "Delete columns to be used as the new index."
39+
},
40+
"append": {
41+
"type": "bool",
42+
"default": false,
43+
"description": "Whether to append columns to existing index."
44+
},
45+
"inplace": {
46+
"type": "bool",
47+
"default": false,
48+
"description": "Modify the DataFrame in place (do not create a new object)."
49+
},
50+
"verify_integrity": {
51+
"type": "bool",
52+
"default": false,
53+
"description": "Check the new index for duplicates. Otherwise defer the check until necessary. Setting to False will improve the performance of this method."
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)