Lab 09: NumPy and pandas

Note

In lab.qmd ## Lab 9 section, create a Python pandas.DataFrame equivalent to the R tibble

library(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
dic = {'__': np.arange(__, __), 
       '__': np.arange(__, __, __),
       '__': [, , , , ]}
pd._____________(dic)