mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-20 07:01:03 -05:00
* fix(curriculum): standradize links in curriculum * Data analiysis links * CIP links * fixed links in s-expressions * Update curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md Co-authored-by: Ilenia <nethleen@gmail.com> * added space before target attribute * standarize external and .rock example links * wrap "check out the projects" around the links Co-authored-by: Ilenia <nethleen@gmail.com>
1.3 KiB
1.3 KiB
id, title, challengeType, videoId, bilibiliIds, dashedName
| id | title | challengeType | videoId | bilibiliIds | dashedName | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5e9a093a74c4063ca6f7c15a | Pandas DataFrames | 11 | 7SgFBYXaiH0 |
|
pandas-dataframes |
--description--
Instead of using notebooks.ai like it shows in the video, you can use Google Colab instead.
More resources:
--question--
--text--
What will the following code print out?
import pandas as pd
certificates_earned = pd.DataFrame({
'Certificates': [8, 2, 5, 6],
'Time (in months)': [16, 5, 9, 12]
})
certificates_earned.index = ['Tom', 'Kris', 'Ahmad', 'Beau']
print(certificates_earned.iloc[2])
--answers--
Tom 16 Kris 5 Ahmad 9 Beau 12 Name: Time (in months), dtype: int64
Certificates 6 Time (in months) 12 Name: Beau, dtype: int64
Certificates 5 Time (in months) 9 Name: Ahmad, dtype: int64
--video-solution--
3