Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Pandas
(edit)
Revision as of 07:20, 21 May 2019
123 bytes added
,
07:20, 21 May 2019
m
→Select 1 column
Line 34:
Line 34:
list(df['one'])
list(df['one'])
dfToList = df['one'].tolist()
dfToList = df['one'].tolist()
+
</syntaxhighlight>
+
+
=== Select multiple columns ===
+
<syntaxhighlight lang="python3">
+
df[['column1', 'column2', 'column3']]
</syntaxhighlight>
</syntaxhighlight>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version