Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

update_datasets.py 258 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
  1. import numpy as np
  2. import pandas as pd
  3. sales_train = pd.read_csv('readonly/final_project_data/sales_train.csv.gz')
  4. sales_train.head()
  5. sales_train.sort_values(by=['date_block_num'])
  6. sales_train.groupby(by=['item_id','shop_id']).apply(lambda x:list(x)[0])
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...