All Questions
2 questions
3
votes
2
answers
1k
views
Create dummy variables in dataframe using for loop and apply lambda
I like to compute dummy variables based on the existing values in a dataframe and a dictionary with certain "cut off" points. I wonder whether I need to get rid of the for loop in the ...
2
votes
1
answer
4k
views
Python Pandas Apply with a Lambda Function
I have a table in pandas that has two columns, QuarterHourDimID and StartDateDimID ; these columns give me an ID for each date / ...