๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ป Deep Wide Programming/Python

Data Manipulation with pandas #1-1 Data : DataFrames ์ด์ •๋ฆฌ

728x90
๋ฐ˜์‘ํ˜•

1. DataFrames ์ด์ •๋ฆฌ

๋ฐ์ดํ„ฐ์บ ํ”„์˜ Data Manipulation with pandas ์ฒซ ๊ฐ•์˜๋Š”, ํŒ๋‹ค์Šค์˜ "DATAFRAMES"์— ๋Œ€ํ•œ ๋น ๋ฅธ ์ „๋ฐ˜์  ๋ณต์Šต ๋ฐ ์˜ค๋ฒ„๋ทฐ๋กœ ์‹œ์ž‘ํ•œ๋‹ค. 

 

๊ฐ™์€ columns ๋‚ด์—๋Š” ๊ฐ™์€ data type์„ ๊ฐ€์ง„๋‹ค. 

numerical variables์— ๋Œ€ํ•œ ํ€ต ์˜ค๋ฒ„๋ทฐ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค
row ๋ ˆ์ด๋ธ”์€ index์— ๋‹ด๊ฒจ ์žˆ๋‹ค. 


1-2. DataFrames ์‹ค์Šต 

(1) Inspecting a DataFrame

homelessness.head()

์ด๋Ÿฐ ๋ฐฉ์‹์œผ๋กœ, ์•ž์ชฝ์— ๊ฒ€์‚ฌํ•  ๋ฐ์ดํ„ฐํ”„๋ ˆ์ž„์˜ ์ œ๋ชฉ์„ ๋„ฃ์–ด์ค€๋‹ค.

์ด๋Ÿฐ ๋ฐฉ์‹์œผ๋กœ printํ•œ๋‹ค.


 

 

728x90
๋ฐ˜์‘ํ˜•