We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd41cff commit 82e9265Copy full SHA for 82e9265
Numpy-Pandas/script.py
@@ -184,3 +184,18 @@ def download_and_load_csv(url):
184
df = download_and_load_csv(filename)
185
if df is not None:
186
print(df.head())
187
+
188
+# Accessing the column length
189
+x = df[['Length']]
190
+print(x)
191
192
+# Getting the column as series
193
+x_series = df['Length']
194
+print(x_series)
195
196
+# Accessing multiple columns
197
+x_multiple = df[['Artist','Length','Genre']]
198
+print(x_multiple)
199
200
+# Accessing unique elements is the iloc method where i can access the first row and the first column
201
+print(df.iloc[0,0])
0 commit comments