我想创建一个包含前“n”个自然数及其各自平方的熊猫系列。通过使用手动索引,前“n”个数字应出现在索引位置
有人可以与我分享代码吗
python series dataframe pandas
dataframe ×1
pandas ×1
python ×1
series ×1