Skip to content

Deprecate inplace parameter #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bonusy/bonusove-pandas/indexy.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To, jaký sloupec má být použit jako index, řeší funkce `set_index()`. Ta
```py
import pandas
staty = pandas.read_json("staty.json")
staty.set_index("alpha2Code", inplace=True)
staty = staty.set_index("alpha2Code")
```

Úspěch našeho počínání si můžeme zkontrolovat pomocí příkazu `staty.index`, který nám zobrazí informace o indexu.
Expand Down
2 changes: 1 addition & 1 deletion python-pro-data-1/nacteni-dat/nacteni-dat.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Všimni si, že `pandas` nám přidal nový sloupec s číslem řádku. Jedná s
My bychom si jako index mohli zvolit sloupec `fdc_id`. To bychom provedli pomocí metody `set_index()`.

```py
food.set_index("fdc_id", inplace=True)
food = food.set_index("fdc_id")
```

Pandas nabízí kromě funkce `read_csv()` také funkci pro čtení formátu JSON `read_json()` nebo dokonce funkci pro čtení přímo Excelových tabulek `read_excel()`.
Expand Down