Subset of dataframe, "not in index " error
Sub_DF = DF[["Name","1 -30"]]
I have the following dataframe:




Name
1 -30
Limit




A
100
1000


B
200
1000




I am trying to create a subset of this dataframe, for only the first two columns, with the following code:
Sub_DF = DF[["Name","1-30"]]
This unfortunately leads to the following error: KeyError: "['1-30'] not in index"
So my expected output should look like this:




Name
1 -30




A
100


B
200




I have tried using the iloc function but that did not help. I also tried to enter 1-30 without quotation marks.
Please find below the info about the column names:

Name         243 non-null    object
1 -  30      245 non-null    float64
Cred.limit   213 non-null    float64

Any tips? Please note that I am new to programming :)