tibble(x = 1:5, y = 5:1, z = LETTERS[1:5])
# A tibble: 5 × 3
x y z
<int> <int> <chr>
1 1 5 A
2 2 4 B
3 3 3 C
4 4 2 D
5 5 1 E
In lab.qmd ## Lab 9
section, create a Python pandas.DataFrame equivalent to the R tibble
tibble(x = 1:5, y = 5:1, z = LETTERS[1:5])
# A tibble: 5 × 3
x y z
<int> <int> <chr>
1 1 5 A
2 2 4 B
3 3 3 C
4 4 2 D
5 5 1 E
import numpy as np
import pandas as pd
import string
list(string.ascii_uppercase)
= {'__': ____________,
dic '__': reversed(____________),
'__': list(string.ascii_uppercase)[______]}
pd._____________(dic)