SalesCandy Git archive
20200308-sample-leads
Collects a sample of lead data for analysis.
README
This repository contains sample lead data, originally collected for analysis purposes. It demonstrates data processing workflows, including sampling and exporting records to CSV format.
The primary use case is analyzing structured lead data. Inputs are raw lead records, and the output is typically a cleaned, sampled, or aggregated CSV file ready for further review.
Selected files and folders
package.json
Reconstructed issues
Summaries inferred from the archive. Original issue records are unavailable here.
Inconsistent Sample Size Reduction
The initial sampling mechanism was not consistently reducing the dataset size. A change was needed to ensure that only a random subset of records was selected for analysis, improving efficiency.
CSV Export Logic Refinement
The process for exporting data to CSV needed refinement to correctly handle grouping and aggregation. This change ensured that the resulting CSV accurately reflected the grouped data structure.
Filtering by Tenant and Country
The data export logic was too broad, failing to isolate records based on specific criteria. This update introduced filtering capabilities using tenant ID and country to narrow the scope of the exported data.
Selected commits
-
export csv with pytho
Ali Fattahdizaji ·
6bf5bac301396792ee1f0374cb0bc9e9ea2f7a8f -
Python_CodedWithSizeAndLeadStatus
Ali Fattahdizaji ·
07709be8ae1d8130a7feba8928156d2befc13acf -
Draft Code to export csv from tenantID based on Country
Ali Fattahdizaji ·
2188b76de1cad935d6bbd721a725f0d0269a0cd7 -
Modified to reduce number of items collected (choose random using function_score)
Reza Rosli ·
dec2efeb6c559d836178695148ed07b889ccef15 -
output directory
Reza Rosli ·
75794b549051acebb127c23583e27e9d7a80534c -
Merge branch 'master' of gitlab.com:salescandy/data-science/20200308-leads
Reza Rosli ·
40fdb1163774c99f38858890742aff574a4f954f -
Add renovate.json
Renovate Bot ·
210f1cc7bb0edd87cfde8d830abbebc9dcd61382 -
add output csv to .ignore
Ali Fattahdizaji ·
e80599aa090c2d900e11955e9d075cebcfffdbd0 -
fix reading issue and grouping data and then export the result in csv
Ali Fattahdizaji ·
aa071d3b0191d97c6eff4698280f559dec55af76 -
clean up code, add groupby and save the record in csv
Ali Fattahdizaji ·
4136a9f03393f1f4bb9c274e40a7d5739c2eddcf -
newout
Ali Fattahdizaji ·
e3cadc311687055f1960439c05334a7e9cb2f68d -
newone
Ali Fattahdizaji ·
b722c4b98a36c8eaf243986d3cd4f4dfd486952b -
outresult
Ali Fattahdizaji ·
72973d8146256d9ac00960e44a01ed9b947036ea -
Result
Ali Fattahdizaji ·
2f9745a61c36230a2836d274db390838b72afebb -
read file and write to csv
Ali Fattahdizaji ·
b98da5046360ab4eef09aa0185e44ff473da97b1 -
remove unnecessary codes
Ali Fattahdizaji ·
900ccfc1358ca0540bf99bab605ddeda0b63d9d0 -
DatabaseResult
Ali Fattahdizaji ·
2093a61778fc6aedd6e37eeec3f251170cb0e337 -
These files not supposed to be ignored
Reza Rosli ·
c4327d8f3e097cd98304c10ccf9f2257c66d7dc9 -
Add package.lock
Reza Rosli ·
7456c849d64348fdf6aadaa864c9d39e67393d9e -
Initial commit
Reza Rosli ·
682ba14280c51061da16470d45cd771a85f03d83 -
Don't include node_modules
Reza Rosli ·
421894866fea86e4bbbf4df815cd10df5c6ff228