-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain_trends.py
32 lines (22 loc) · 883 Bytes
/
main_trends.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import numpy as np
import pandas as pd
import seaborn as sns
from datetime import datetime
from sklearn.preprocessing import MinMaxScaler
from sklearn.tree import DecisionTreeRegressor
import random
from commodity import Commodity
from crop_profile import get_crop_profile
from tops_bottoms import TopFiveCrops,BottomFiveCrops
import crops_areas
from forecast_helper import CurrentMonth,TwelveMonthPrevious,SixMonthsForecastHelper,TwelveMonthsForecast
#commodity_list = []
from update_commodities import update_list
commodity_list=update_list()
if __name__ == "__main__":
#Pass the name of crop to get its full profile info in JSON format ; example->bajra
cropname="bajra"
print(get_crop_profile(cropname))
#To get the name and market price of latest top and bottom most 5 crops , call these functions
print(TopFiveCrops())
print(BottomFiveCrops())