iloc function in python

iloc-function-in-python
import pandas as pd

# Örnek bir veri çerçevesi oluşturalım
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6], 'C': [7, 8, 9]})

# select the first line
ilk_satir = df.iloc[0]
print(ilk_satir)
çıktı =>

A    1
B    4
C    7

yani burda iloc foksiyonumuz veri çerçevesindeki elemanlar üzerinde işlem gerçekleştiriyor pandas kütüphanemizi kullanarak

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
bloc — the-magic-of-single-state-class

BLoC — The Magic of Single State Class

Next Post
xiaomi-mi-wifi-mini-r1c-icin-openwrt-kurulum-rehberi

XIAOMI MI WIFI MINI R1C IÇIN OPENWRT KURULUM REHBERI

Related Posts