Learn Before
Concept
Selecting Data in Pandas
Selecting Data can be done very easily as data stored in Pandas data frames have a coordinate pair associated with it and also have a string based indexing, which utilizes the column names and index values.
To select an entire column, use python df["column_name"]. To select a range of columns use python df[0:3]. This will select the values ranging from column 0 to column 3.
Data selection can also be done using the rows names, or selecting a range of values using string or integer names, for example: python df["20130102":"20130104"]
A B C D 2013-01-02 1.212112 -0.173215 0.119209 -1.044236 2013-01-03 -0.861849 -2.104569 -0.494929 1.071804 2013-01-04 0.721555 -0.706771 -1.039575 0.271860
You can also directly access a specific index using one of the following 4 functions in the Child node.
0
0
Updated 2021-05-28
Tags
Python Programming Language
Data Science