python:pandas
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python:pandas [2021/08/05 18:29] – [DataFrame] utedass | python:pandas [2022/09/12 00:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| 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. | 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.1628188143.txt.gz · Last modified: 2022/09/12 00:30 (external edit)
