@@ -74,13 +74,13 @@ using HTTP, CSV, DataFrames
7474
75753 . Create a helper function:
7676``` julia
77- function get_julia_master_file (file_name:: String , return_dataframe:: Bool = true , download_csv:: Bool = false )
77+ function get_julia_package_data (file_name:: String , return_dataframe:: Bool = true , download_csv:: Bool = false )
7878 url = string(" https://raw.githubusercontent.com/analyticsinmotion/julia-packages-data/main/data/" , file_name)
7979 response = HTTP. get(url)
8080 response. status == 200 || error(" Failed to retrieve data from the URL" )
81- df_julia_package_names = IOBuffer(response. body) |> CSV. File |> DataFrame
82- download_csv ? CSV. write(" julia_package_names.csv" , df_julia_package_names ) : nothing
83- return return_dataframe ? df_julia_package_names : nothing
81+ df_julia_package_data = IOBuffer(response. body) |> CSV. File |> DataFrame
82+ download_csv ? CSV. write(" julia_package_names.csv" , df_julia_package_data ) : nothing
83+ return return_dataframe ? df_julia_package_data : nothing
8484end
8585```
8686
@@ -92,35 +92,35 @@ For *Julia Package Names*
9292``` julia
9393# Variable values of true, true will return the DataFrame within Julia and also export it as a CSV file
9494file_name = " julia_package_names.csv"
95- get_julia_master_file (file_name, true , true )
95+ get_julia_package_data (file_name, true , true )
9696```
9797
9898For * Julia Package Requests*
9999``` julia
100100# Variable values of true, true will return the DataFrame within Julia and also export it as a CSV file
101101file_name = " julia_package_requests.csv"
102- get_julia_master_file (file_name, true , true )
102+ get_julia_package_data (file_name, true , true )
103103```
104104
105105For * Julia Package Requests by Date*
106106``` julia
107107# Variable values of true, true will return the DataFrame within Julia and also export it as a CSV file
108108file_name = " julia_package_requests_by_date.csv"
109- get_julia_master_file (file_name, true , true )
109+ get_julia_package_data (file_name, true , true )
110110```
111111
112112For * Julia Package Requests by Region*
113113``` julia
114114# Variable values of true, true will return the DataFrame within Julia and also export it as a CSV file
115115file_name = " julia_package_requests_by_region.csv"
116- get_julia_master_file (file_name, true , true )
116+ get_julia_package_data (file_name, true , true )
117117```
118118
119119For * Julia Package Requests by Region by Date*
120120``` julia
121121# Variable values of true, true will return the DataFrame within Julia and also export it as a CSV file
122122file_name = " julia_package_requests_by_region_by_date.csv"
123- get_julia_master_file (file_name, true , true )
123+ get_julia_package_data (file_name, true , true )
124124```
125125
126126<br /><br />
0 commit comments