You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
26
-
The ``start_date`` and ``end_date`` parameters take the start and end date of the time frame for which the analysis is to be done.
25
+
The ``df`` parameter takes a pandas DataFrame as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
26
+
The ``city_zipcode_map`` parameter takes a pandas DataFrame mapping cities to zip codes.
27
+
The ``start_date`` and ``end_date`` parameters take the start and end date of the time frame for which the analysis is to be done.
27
28
The ``city`` parameter takes the name of the city for which the analysis is to be done.
29
+
The ``default_city`` parameter specifies the fallback city for unmapped zip codes.
28
30
The ``epsilon`` parameter takes the value of epsilon for differential privacy.
you can use the ``viz.create_hotspot_dash_app()`` function:
47
50
48
51
.. autofunction:: viz.create_hotspot_dash_app
49
52
50
-
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
53
+
The ``df`` parameter takes a pandas DataFrame as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
54
+
The ``city_zipcode_map`` parameter takes a pandas DataFrame mapping cities to zip codes.
55
+
The ``default_city`` parameter specifies the fallback city for unmapped zip codes.
you can use the ``mobility_analyzer.mobility_analyzer()`` function to generate differential private time series of trnsactional data in the ``retail_and_recreation``, ``grocery_and_pharmacy`` and ``transit_stations`` super categories:
71
+
you can use the ``mobility_analyzer.mobility_analyzer()`` function to generate differentially private time series of transactional data in various merchant supercategories:
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
69
-
The ``start_date`` and ``end_date`` parameters take the start and end date of the time frame for which the analysis is to be done.
75
+
The ``df`` parameter takes a pandas DataFrame as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
76
+
The ``city_zipcode_map`` parameter takes a pandas DataFrame mapping cities to zip codes.
77
+
The ``start_date`` and ``end_date`` parameters take the start and end date of the time frame for which the analysis is to be done.
70
78
The ``city`` parameter takes the name of the city for which the analysis is to be done.
71
-
The ``category`` parameter takes the value of ``retail_and_recreation``, ``grocery_and_pharmacy`` or ``transit_stations`` for which the analysis is to be done.
79
+
The ``default_city`` parameter specifies the fallback city for unmapped zip codes.
80
+
The ``category`` parameter takes the value of a merchant supercategory (e.g., ``retail_and_recreation``, ``grocery_and_pharmacy``, or ``transit_stations``) for which the analysis is to be done.
72
81
The ``epsilon`` parameter takes the value of epsilon for differential privacy.
you can use the ``viz.create_mobility_dash_app()`` function:
91
101
92
102
.. autofunction:: viz.create_mobility_dash_app
93
103
94
-
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
104
+
The ``df`` parameter takes a pandas DataFrame as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
105
+
The ``city_zipcode_map`` parameter takes a pandas DataFrame mapping cities to zip codes.
106
+
The ``default_city`` parameter specifies the fallback city for unmapped zip codes.
you can use the ``pandemic_adherence_analyzer.pandemic_stage_analyzer()`` function to generate differential private time series of trnsactional data for luxurious or essential goods:
121
+
To do pandemic adherence inference,
122
+
you can use the ``pandemic_adherence_analyzer.pandemic_adherence_analyzer()`` function to generate differential private time series of transactional data for luxury or essential goods:
The ``df`` parameter take pandas dataframe as input with columns ``["ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
113
-
The ``start_date`` and ``end_date`` parameters take the start and end date of the time frame for which the analysis is to be done.
114
-
The ``city`` parameter takes the name of the city for which the analysis is to be done.
115
-
The``essential_or_luxury`` parameter takes the value of "essential"or "luxury" for which the analysis is to be done.
116
-
The ``epsilon`` parameter takes the value of epsilon for differential privacy.
126
+
The ``df`` parameter takes a pandas DataFrame as input with columns ``["ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
127
+
The ``start_date`` and ``end_date`` parameters specify the time frame for which the analysis is to be conducted.
128
+
The ``city`` parameter specifies the city for which the analysis is to be conducted.
129
+
The``essential_or_luxury`` parameter takes the value "essential", "luxury", or "other" depending on the goods to be analyzed.
130
+
The ``epsilon`` parameter sets the epsilon value for differential privacy.
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
152
+
The ``df`` parameter takes a pandas DataFrame as input with columns ``["ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
153
+
The ``city_zipcode_map`` parameter specifies the city-zipcode mapping DataFrame.
154
+
The ``default_city`` parameter sets the default city for mapping purposes.
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
158
-
The ``start_date`` and ``end_date`` parameters take the start and end date of the time frame for which the analysis is to be done.
159
-
The ``pincode_prefix`` parameter indicating the starting digits that is common to all the pincodes of the country.
160
-
The ``epsilon`` parameter takes the value of epsilon for differential privacy.
175
+
The `df` parameter takes a pandas dataframe as input with columns `[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]`.
176
+
The `start_date` and `end_date` parameters take the start and end dates of the time frame for which the analysis is to be performed.
177
+
The `city` parameter specifies the city for which the analysis is conducted.
178
+
The `epsilon` parameter takes the value of epsilon for differential privacy.
The ``age_group_sample_size`` parameter takes the age group sample size distribution list. This will be generated by using the values from the map returned by the ``get_age_group_count_map()`` function.
174
-
The ``age_group_population_distribution`` parameter takes the age group population distribution list for the country.
191
+
The `sample_distribution` parameter takes the age group sample size distribution list. This will be generated using the values from the map returned by the `get_age_group_count_map()` function.
192
+
The `population_distribution` parameter takes the age group population distribution list for the country.
To calculate the countrywide contact matrix you can use the ``contact_matrix.get_contact_matrix_country()`` function to generate differential private contact matrix:
209
+
To calculate the country-wide contact matrix, you can use the `contact_matrix.get_contact_matrix_country()` function to generate a differential private contact matrix:
The ``counts_per_city`` parameter takes the age group count map for each city in the country.
196
-
``population_distribution`` parameter takes the age group population distribution list for the country.
197
-
``scaling_factor`` parameter takes the scaling factor for the population distribution. This scales the population distribution while estimating total number of contacts across age groups.
213
+
The `counts_per_city` parameter takes the age group count map for each city in the country.
214
+
The `population_distribution` parameter takes the age group population distribution list for the country.
215
+
The `scaling_factor` parameter scales the population distribution while estimating the total number of contacts across age groups.
The ``df`` parameter take pandas dataframe as input with columns ``[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]``.
240
+
The `df` parameter takes a pandas dataframe as input with columns `[ "ID", "date", "merch_category", "merch_postal_code", "transaction_type", "spendamt", "nb_transactions"]`.
0 commit comments