I'm read_excel() to convert an xlsx spreadsheet into a dataframe. It usually works fine, but for this spreadsheet when I import it and try to list all the values with df["Date"] it seems to repeat every date many, many times. Any idea why this is?
df = pd.read_excel("data.xlsx", sheet_name="Data")
dates = df['Date']
The result:
0 2014-12-22
1 2014-12-22
2 2014-12-22
3 2014-12-22
4 2014-12-22
...
419532 2020-01-10
419533 2020-01-10
419534 2020-01-10
419535 2020-01-10
419536 2020-01-10
edit: A bit of the spreadsheet:
As you can see the dates are repeated, they definitely do not look like that in my spreadsheet. Any idea why? Thanks

dfandunbranded_dfCALGARYor some field like that, and clearing the filter shows a bunch of rows with the same date, then yes. If that's the case, you probably want to setdf = df[df['city'] == 'CALGARY']