python:pandas
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| python:pandas [2021/08/05 18:25] – created utedass | python:pandas [2022/09/12 00:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Tightly coupled to numpy. | Tightly coupled to numpy. | ||
| + | ====== DataFrame ====== | ||
| + | A DataFrame is like a table, where each row is a Series. A DataFrame identify each row with an index, which defaults to 0..n. Same with the columns. | ||
| + | ===== Indexing ===== | ||
| + | |||
| + | <code python> | ||
| + | import pandas as pd | ||
| + | |||
| + | tabledata = {' | ||
| + | ' | ||
| + | ' | ||
| + | |||
| + | df = pd.DataFrame(tabledata) | ||
| + | </ | ||
| + | |||
| + | ===== inplace=True ===== | ||
| + | Most operations (?) creates a new dataset unless the property '' | ||
| + | |||
| + | <code python> | ||
| + | df.set_index(' | ||
| + | </ | ||
python/pandas.1628187901.txt.gz · Last modified: 2022/09/12 00:30 (external edit)
