阅读带括号的列
Read columns with brackets
我正在尝试阅读名为 Goods_Issue_Date_(GID)
的专栏
我该如何阅读?
我试过了:
Df.Goods_Issue_Date_(GID)
Returns 语法无效
以下面的数据帧为例
data = [['Carrots', "Tuesday"], ['Apples', "Monday"], ['Pears', "Sunday"]]
df = pd.DataFrame(data, columns = ['Product', 'Goods_Issue_Date_(GID)'])
df.head()
Product Goods_Issue_Date_(GID)
0 Carrots Tuesday
1 Apples Monday
2 Pears Sunday
您可以像这样 select Goods_Issue_Date_(GID)
列
df['Goods_Issue_Date_(GID)']
0 Tuesday
1 Monday
2 Sunday
Name: Goods_Issue_Date_(GID), dtype: object
我正在尝试阅读名为 Goods_Issue_Date_(GID)
我该如何阅读?
我试过了:
Df.Goods_Issue_Date_(GID)
Returns 语法无效
以下面的数据帧为例
data = [['Carrots', "Tuesday"], ['Apples', "Monday"], ['Pears', "Sunday"]]
df = pd.DataFrame(data, columns = ['Product', 'Goods_Issue_Date_(GID)'])
df.head()
Product Goods_Issue_Date_(GID)
0 Carrots Tuesday
1 Apples Monday
2 Pears Sunday
您可以像这样 select Goods_Issue_Date_(GID)
列
df['Goods_Issue_Date_(GID)']
0 Tuesday
1 Monday
2 Sunday
Name: Goods_Issue_Date_(GID), dtype: object