Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
322 views
in Technique[技术] by (71.8m points)

python - Data Manipulation with respect to date fields to get summary data

I have data such as the following:

start_date end_date project_sales project_category project_code
2015-08-03 2015-08-06 1683 CatA 1
2015-08-02 2015-08-04 6500 CatB 2

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I would suggest you check out this Stackoverflow question. I think that you will get the desirable answer there. Python Pandas counting and summing specific conditions

As for the high volume of data, I may recommend to look at the parallel data processing frameworks such as Dask, Modin,or Vaex. Check the differences between frameworks here in this blog.

Disclaimer: I don't own all above website. I think that those resources can answer the question better than I do.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...