Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Counting and grouping
Post: Counting and grouping

Hi, I've got a dataset and would like to add the number of cases per year and put it in a new column. I used the following codes but wasn't able to get the total of 'complaints' for each year. my_data...
Kudzo Data Science 0 1,357 Jan-27-2020, 01:30 AM
    Thread: ValueError: could not convert string to float: '4 AVENUE'
Post: RE: ValueError: could not convert string to float:...

(Jan-26-2020, 12:34 PM)jefsummers Wrote: Consider one-hot encoding. See if this helps: One hot encoding a feature in a dataframeThank you, jefsummers
Kudzo Data Science 4 5,958 Jan-26-2020, 10:47 PM
    Thread: ValueError: could not convert string to float: '4 AVENUE'
Post: RE: ValueError: could not convert string to float:...

Thank you, scidam. I've been able to deal with the timestamp problem. My challenge is, I'm trying to predict a string variable and so expect the system to convert it to float. Actually, I'm using this...
Kudzo Data Science 4 5,958 Jan-24-2020, 02:56 PM
    Thread: ValueError: could not convert string to float: '4 AVENUE'
Post: ValueError: could not convert string to float: '4 ...

I tried to run regression using regr = linear_model.LinearRegression() regr.fit(X, y)My data contains columns with DateTime format and another with physical address, such as '8300 4 AVENUE 1'. When I ...
Kudzo Data Science 4 5,958 Jan-23-2020, 10:49 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020