So the picture is the data set I'm dealing with. I'm using Python 3 and Pandas pack. Question I'm answering is: "What was the month and day of the first sale? Store as a tuple in that order and assign the tuple to the variable first_date."
My thought process was turning the 'trans_timestamp' column into int rather than floats so I could find the min value of the int. This is the code I implemented
df_cleaned['trans_timestamp'] = df_cleaned['trans_timestamp'].astype(int)
first_date = df_cleaned['trans_timestamp'].min()
first_date
I'm guessing either the .astype(int)
is the problem, or I'm just looking at the problem in a completely different perspective than how they want me too. Anything helps thanks!