Mar-14-2024, 02:02 PM
(This post was last modified: Mar-14-2024, 02:02 PM by bongielondympofu.)
I get the TypeError: unhashable type: 'Series' when running the code. The dataset does have a column called 'Date' The code is below
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("data.csv")
date = input("What date would you like to view? (dd/mm/yyyy)\nEnter: ")
df1 = df.loc(df["Date"] == date)
print(df1)However the line below works;[df1 = (df.loc[df.Date == date])
