Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More complex questionnaire setups #1166

Open
wants to merge 1,893 commits into
base: i994-read_dimensions_generalized_files
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1893 commits
Select commit Hold shift + click to select a range
418293f
fix in hmerge: updating of existing cols was broken
nitsrek Oct 23, 2018
ab6255c
keep type in merge
nitsrek Oct 23, 2018
57bacfe
checkpoint: Batch.variables()
Oct 23, 2018
0e6f867
Merge branch 'i1158_Batch_additional_variables' of https://github.com…
Oct 23, 2018
79a61a1
checkpoint
nitsrek Oct 23, 2018
c945127
checkpoint
nitsrek Oct 23, 2018
98610b2
allow overwriting of batch filtersÄ
nitsrek Oct 24, 2018
76a4328
emptying .variables before adding new list of variables
Oct 24, 2018
d59d026
checkpoint
nitsrek Oct 24, 2018
81a97b3
fix ignore renames in batch props for copy
nitsrek Oct 24, 2018
a01210f
remove prints
nitsrek Oct 24, 2018
9bd7761
checkpoint
nitsrek Oct 25, 2018
2f19e58
allow inserting cm by neg values
nitsrek Oct 25, 2018
17fd9b3
dataset compare_filter
nitsrek Oct 25, 2018
d2d3c7b
qp parrot!
nitsrek Oct 25, 2018
eb38691
encoding in filter_names
nitsrek Oct 25, 2018
0fccc19
qp.parrot!
nitsrek Oct 26, 2018
ccdba01
Merge pull request #1167 from Quantipy/i1158_Batch_additional_variables
alextanski Oct 26, 2018
e908703
test fixes
Oct 26, 2018
09ae43d
fix tests
Oct 26, 2018
5318e38
fix tests
Oct 26, 2018
cc45e19
Merge branch 'i1158_Batch_additional_variables' into develop
Oct 26, 2018
d06fc77
Merge branch 'develop' of https://github.com/Quantipy/quantipy into i…
nitsrek Oct 26, 2018
3938b41
remove file
nitsrek Oct 26, 2018
f23654c
adjust gitignore
nitsrek Oct 26, 2018
2b79175
Merge pull request #1168 from Quantipy/i1085_DataSet_Batch_filter_con…
nitsrek Oct 26, 2018
0dcb32d
gitignore
nitsrek Oct 26, 2018
e5dee35
Merge pull request #1169 from Quantipy/i1085_DataSet_Batch_filter_con…
nitsrek Oct 26, 2018
7816751
subset in weight
nitsrek Oct 29, 2018
a3c296f
Merge branch 'i1085_DataSet_Batch_filter_concept' into develop
nitsrek Oct 29, 2018
9f8f0f9
adjustments for filters
nitsrek Oct 29, 2018
2753325
Merge pull request #1171 from Quantipy/i1085_DataSet_Batch_filter_con…
nitsrek Oct 29, 2018
2d94c60
filter for open ends and for y_on_y
nitsrek Oct 30, 2018
0b899d4
warning for stats on delimited set
nitsrek Oct 30, 2018
5906eea
add warning
nitsrek Oct 30, 2018
3a459e7
encoding in rename mapper
nitsrek Oct 30, 2018
68390fb
undo datafile list rename
nitsrek Oct 30, 2018
71e87bd
fix filter compare
nitsrek Oct 31, 2018
1499eba
fix _toggle_bases in sandbox
nitsrek Oct 31, 2018
b8e9292
add line+column chart to draft_autochart
AndersFreund Oct 31, 2018
98d2d3d
fix painting for array items
nitsrek Nov 2, 2018
88f44ab
set auto chart_type if none defined
AndersFreund Nov 2, 2018
d7bc747
change auto_charttype to default to bar_clustered
AndersFreund Nov 2, 2018
41c725c
check filter names
nitsrek Nov 2, 2018
e500276
property name must be _variables for loading/saving batches in datase…
Nov 5, 2018
6017943
verify filter name in batch
nitsrek Nov 6, 2018
9b28ce7
Merge branch 'i1172-filter_bugs' of https://github.com/Quantipy/quant…
nitsrek Nov 6, 2018
6c89174
ChainManager now handles sig test result letters in a different way
Nov 6, 2018
5066e9a
Merge pull request #1176 from Quantipy/i1174_add_column+line_chart
AndersFreund Nov 7, 2018
84c8f4b
Merge pull request #1179 from Quantipy/i1177_make_property_chart_type…
AndersFreund Nov 7, 2018
fcac1c8
new option to show sig level on the painted row index, transform_test…
Nov 8, 2018
4c3f4d8
bugfix
Nov 9, 2018
2cf52a2
remove debug print
Nov 9, 2018
869d1ac
Merge branch 'i1172-filter_bugs' into i1180-Chain_cell_items_broken
Nov 9, 2018
f64aa19
some bugfixes for _toggle_bases
Nov 9, 2018
3f463ef
check filter names: remove "&"
nitsrek Nov 13, 2018
335adce
adding parameter
Nov 13, 2018
8187f86
adding parameter for display_level
Nov 14, 2018
bc2f50e
fix for new filter in batch.hide_empty
nitsrek Nov 14, 2018
5a13d5b
bugfix for alternating array items that miss labels
Nov 16, 2018
9fe8421
stupid list compr. error fixed...
Nov 20, 2018
c4eec0a
fix for renaming_properties for array items
nitsrek Nov 21, 2018
81b49b1
filter fix in batch + adjust gitignore
nitsrek Nov 22, 2018
db36f2f
checkpoint
Nov 23, 2018
447ec11
testing: how to modify excel.py to stop alternate_bg for sig level ro…
Nov 23, 2018
9e2f615
fixing formats for INDIA sigtesting settings
Nov 26, 2018
cf15045
bugfix for wrong detection of multiple sig levels...
Nov 26, 2018
6142cd5
removing code
Nov 27, 2018
9bd1331
Merge pull request #1185 from Quantipy/i1172-filter_bugs
alextanski Nov 28, 2018
ee7ab92
Merge pull request #1186 from Quantipy/i1173-upper_lower_case_test_ids
alextanski Nov 28, 2018
961ddcb
Merge branch 'develop' into i1180-Chain_cell_items_broken
alextanski Nov 28, 2018
4d8ab9e
Merge pull request #1182 from Quantipy/i1180-Chain_cell_items_broken
alextanski Nov 28, 2018
ed8356a
fix merge
nitsrek Nov 28, 2018
1386a28
fix cell contents for expandedn nets
nitsrek Nov 28, 2018
7f34885
checkpoint
Dec 14, 2018
507c8e5
export/assign with viewlike calc on the side axis
Dec 17, 2018
2ecafe7
leftover code removval
Dec 17, 2018
8d7df30
fixing the wrong dict expression and the testing for an actual condition
Dec 18, 2018
ae20cc8
Merge pull request #1193 from Quantipy/i1192_hide_empty_filter_cond_w…
alextanski Dec 19, 2018
85eb351
skip rules for checks
nitsrek Dec 20, 2018
14b99ee
rebase parameter for net views
Dec 20, 2018
22b1b70
parameter name change from rebase to other_base. probably only temp. …
Dec 20, 2018
270ac64
fix in derotate (for legacy data)
nitsrek Dec 21, 2018
ca2eb31
fix in dataset empty_items for delimited set arrays
nitsrek Dec 28, 2018
af358f7
checkpoint: new normalize method
Jan 7, 2019
9262f78
another bugfix for grouping with multiple cell items, sig tests and a…
Jan 7, 2019
7736215
normalize changes
Jan 7, 2019
01b447b
removing rebase method
Jan 8, 2019
e43be74
dataset._typed_batches() to query batch names by type
Jan 8, 2019
bf7905b
_adds_per_mains() method to show the ampping of adds to main/parent b…
Jan 8, 2019
a0508e4
dataset.batches() now able to separate between main and add batches
Jan 8, 2019
4dadb7a
fixed tests for viewlike property
Jan 8, 2019
ec6a46a
another bugfix for grouped views in array summaries...
Jan 8, 2019
e9a678f
Merge pull request #1198 from Quantipy/i1195-rebased_nets
alextanski Jan 8, 2019
e3afd2a
bugfix for too strict check if stats are applied on delimited sets
Jan 8, 2019
6e65d79
bugfix: rebase on other base alone
Jan 8, 2019
72cfe47
Merge pull request #1199 from Quantipy/i1195-rebased_nets
alextanski Jan 8, 2019
30db367
fixing inplace=False return dataframe
Jan 10, 2019
a36285c
updating variable name of weight for consistency between inplace=True…
Jan 10, 2019
a6c0d70
Adding missings() method to return all missings in the dataset
Jan 11, 2019
0eb5c26
Merge pull request #1207 from Quantipy/i1204_show_all_missings
alextanski Jan 11, 2019
da7ff61
Merge branch 'develop' into i1191-Batch_as_main()
alextanski Jan 14, 2019
a59a229
Merge pull request #1196 from Quantipy/i1191-Batch_as_main()
alextanski Jan 14, 2019
a22bd57
parameter deafult/name changes
Jan 14, 2019
8879ebf
bugfix (yet another one....) for array summaries and grouped views...
Jan 14, 2019
49ea10f
removing old code
Jan 14, 2019
520e7a1
Merge pull request #1209 from Quantipy/i1208-pre_release_bugfixes
alextanski Jan 14, 2019
5ac2ff9
skiping sigtests for rebased freqs
Jan 14, 2019
000431d
bugfix for export/assign
Jan 15, 2019
e8f80df
bugfix for tests
Jan 15, 2019
a4c715d
Merge pull request #1211 from Quantipy/i1210_rebased_sigtesting_skipped
alextanski Jan 15, 2019
b6feaa4
skip set long if value exceed Dims limit
AndersFreund Jan 16, 2019
d796b17
add condition to OnJobEnd
AndersFreund Jan 16, 2019
61da8fc
add_section method and sections property for Batch class
Jan 25, 2019
538a6af
Batch.sections now returning None if no sections are defined
Jan 25, 2019
0a882a9
option to take missings into account for recoded nets
nitsrek Jan 28, 2019
02a50d6
rename parameter
nitsrek Jan 28, 2019
bfa4de2
Merge branch 'develop' into i1188-bug_summary
nitsrek Jan 30, 2019
4a16156
Merge pull request #1213 from Quantipy/i1188-bug_summary
nitsrek Jan 30, 2019
cbc4024
Merge pull request #1217 from Quantipy/i1215-missings_in_net_recode
nitsrek Jan 30, 2019
333a77e
adjust batch tests
nitsrek Jan 30, 2019
bbc98fd
counts_first check for cell_items string
Jan 31, 2019
30f64f8
Merge branch 'i1205-batch_annotations_interface' of https://github.co…
Jan 31, 2019
15f8a97
Batch.codes_in_data()
nitsrek Jan 31, 2019
a7ec35b
remove lazy property
nitsrek Jan 31, 2019
495fa44
bugfix in test engine
nitsrek Feb 6, 2019
2619689
fix in make_dummy for delimited set arrays
nitsrek Feb 7, 2019
b45ae78
Merge pull request #1221 from Quantipy/i1220-bugfix_test_engine
nitsrek Feb 7, 2019
33810bd
Merge pull request #1223 from Quantipy/i1134-engine_empty_summary
nitsrek Feb 7, 2019
1dcb167
bugfix for cell_items() not being called but simply evaluated...
Feb 7, 2019
f89aeec
add sig-test params to chart dict
AndersFreund Oct 18, 2018
e659083
add comma to last key-value set in dicts for git usage
AndersFreund Oct 18, 2018
796da38
Merge pull request #1227 from Quantipy/i1225_import_fails
AndersFreund Feb 12, 2019
56f4468
get PptxPainterClass.py up-to-date with staging-develop
AndersFreund Feb 12, 2019
80aa678
get PptxChainClass.py up-to-date with staging-develop
AndersFreund Feb 13, 2019
a19c73e
Merge pull request #1230 from Quantipy/i1225_import_fails
AndersFreund Feb 13, 2019
2182096
support for latest python-pptx package
AndersFreund Feb 13, 2019
31e1a01
Merge pull request #1232 from Quantipy/i1225_import_fails
AndersFreund Feb 13, 2019
837272a
new function DataSet.used_text_keys
nitsrek Feb 14, 2019
ce085e3
switch to en-GB for unknown tks
nitsrek Feb 19, 2019
2203394
handle default text_keys in paint
nitsrek Feb 19, 2019
05921ec
Merge branch 'develop' into i1205-batch_annotations_interface
alextanski Feb 21, 2019
a044c35
Merge pull request #1235 from Quantipy/i1205-batch_annotations_interface
alextanski Feb 21, 2019
c372b2e
reindex data before filter is applied
nitsrek Feb 22, 2019
6c46bcd
change table frame to str and support comma as dec separator
AndersFreund Feb 26, 2019
ee9bebd
just formatting
AndersFreund Feb 26, 2019
e6227f6
Merge pull request #1240 from Quantipy/i1237_setting_dtype_as_int_for…
AndersFreund Feb 26, 2019
1e40505
crossbreak nesting now supported in the _reindex() method
Feb 27, 2019
eec4498
remove print
nitsrek Mar 14, 2019
b99f0af
nested in unroll and decorator
nitsrek Mar 14, 2019
f55bd49
bugfix in drop arrays, keep non categorical items
nitsrek Mar 14, 2019
03e1072
add nesting in roll_up and decorators
nitsrek Mar 14, 2019
cab940f
batch level + transpose and clean up
nitsrek Mar 15, 2019
d98ab13
transposed key in stack
nitsrek Mar 15, 2019
4fe36db
Level class to aggregate summarized arrays
Mar 18, 2019
43a3ed2
no reset of dataset meta if stack filters are needed
Mar 20, 2019
fcc4353
Merge branch 'i1241-export_assign_with_nesting' of https://github.com…
nitsrek Mar 22, 2019
1116024
Merge branch 'i1241_nesting_and_level_in_batch' into i1241-export_ass…
nitsrek Mar 22, 2019
bb6a691
fix tests
nitsrek Mar 22, 2019
caf805a
change error msg in batch
nitsrek Mar 22, 2019
4aaeff6
Merge pull request #1233 from Quantipy/i1214_used_textkeys
nitsrek Mar 22, 2019
8d839e2
Merge pull request #1246 from Quantipy/i1234_unknown_tk_in_paint
nitsrek Mar 22, 2019
51308ee
Merge pull request #1247 from Quantipy/i1236_filterds_reset_index
nitsrek Mar 22, 2019
5bf57ec
Merge pull request #1249 from Quantipy/i1248_bug_in_unbind
nitsrek Mar 22, 2019
37d3205
level process
Mar 27, 2019
6b9390e
new property for level array class feature
Apr 1, 2019
fd00885
fixed tests
Apr 9, 2019
0123df6
Merge pull request #1243 from Quantipy/i1241-export_assign_with_nesting
alextanski Apr 15, 2019
452647f
get back commit
nitsrek Apr 18, 2019
ff3d2d0
Merge branch 'develop' of https://github.com/Quantipy/quantipy into d…
nitsrek Apr 18, 2019
27fe1eb
fix filter handling in batch
nitsrek Apr 23, 2019
3ef5122
fixing the bug
Apr 23, 2019
0da738d
Merge pull request #1253 from Quantipy/i1252-bugfix_for_batch_sections
alextanski Apr 23, 2019
85afb7b
adjust to_dataset
nitsrek Apr 24, 2019
a463b3b
forcing the ci parameter for array summaries
Apr 24, 2019
ee28b58
Merge pull request #1255 from Quantipy/i1252-cut_fails_on_array_summary
alextanski Apr 25, 2019
e80b6af
add missing parameter in pptx parameter_map
nitsrek May 14, 2019
beb820d
bugfix in batch
nitsrek May 16, 2019
10d6cf9
add pytest_cache to gitignore
nitsrek May 20, 2019
a10b8c0
hack that turns qp logic expressions intp pd eval str from dummy vari…
May 20, 2019
f816c45
repairing weight engine test data...
May 21, 2019
7e1a0da
Merge pull request #1212 from Quantipy/i108_numerics_too_long_dims
AndersFreund May 21, 2019
6a27f23
removal of not needed copy of engine dataset after dummy ceation
May 21, 2019
4996e54
removing logical dummy variables leftovers
May 21, 2019
36650cc
Merge pull request #1261 from Quantipy/Batch_bugfixes
nitsrek May 22, 2019
ea78f30
Merge pull request #1262 from Quantipy/bugfix_collection
nitsrek May 22, 2019
664e39d
Merge pull request #1263 from Quantipy/i1201-faked_weightengine_logic…
alextanski May 22, 2019
f71286f
add method add_chain() to ChainManager
AndersFreund May 24, 2019
05db88a
Merge pull request #1264 from Quantipy/i1259_ChainManager.add_chain_n…
AndersFreund May 24, 2019
3f533fe
add private get_property method
nitsrek May 24, 2019
24be184
Merge pull request #1266 from Quantipy/bugfix_collection
nitsrek May 28, 2019
beccdfb
fix index in weight engine
nitsrek May 31, 2019
c9aac84
remove spaces from filter name
nitsrek Jun 4, 2019
bc78eea
Fix for secured vars in DataSet.repair()
roxananeagu Jun 6, 2019
729d6e5
Merge pull request #1270 from Quantipy/i1269-dataset_repair_secured_vars
nitsrek Jun 7, 2019
22d9530
Guarding against newlines in the form of \r\n during dimensions text …
jamesrkg Jun 11, 2019
e56aafc
Merge pull request #1272 from Quantipy/i1271-dims_newling_rn
jamesrkg Jun 11, 2019
89a96e9
Added support for write_dimensions(..., reuse_mdd)
jamesrkg Jun 18, 2019
b8ac261
remove filter from manifest edits
nitsrek Jun 19, 2019
7a2a6d4
Merge pull request #1276 from Quantipy/i1275-fix_to_dataset
nitsrek Jun 21, 2019
c11fbc2
valid_tks updated by merging
Jun 28, 2019
bebfcee
improve dataset.transpose
nitsrek Jun 28, 2019
405dd3f
Merge branch 'i1278-dataset_transpose' into develop
nitsrek Jun 28, 2019
4ada9b8
check replacements'
nitsrek Jul 2, 2019
4691cc9
Merge pull request #1280 from Quantipy/i1279-Batch_oes_repl
nitsrek Jul 2, 2019
6031f22
skip break_by and filter for oes
nitsrek Jul 3, 2019
e5c8b73
typo
nitsrek Jul 3, 2019
2d38ac5
bugfix for i1257
nitsrek Jul 9, 2019
addabeb
feature i1245
nitsrek Jul 9, 2019
6015f97
fix filter for oe in batch.clone
nitsrek Jul 11, 2019
6e3b3bf
Merge pull request #1284 from Quantipy/bugfixes_and_features
nitsrek Jul 11, 2019
1c56f79
fix filter for oe in batch.clone
nitsrek Jul 11, 2019
56be436
Merge branch 'bugfixes_and_features' into develop
nitsrek Jul 11, 2019
2e7c36b
handle filters in Batch.to_dataset
nitsrek Jul 23, 2019
f4894dc
oe filter update
Jul 23, 2019
3ae5e44
add_y_on_y fix for duped names with diff filters
Jul 23, 2019
44eb836
fix conflict
nitsrek Jul 23, 2019
ef76640
oe variables with only columns and filters
Jul 23, 2019
3f59c3b
bring back old commits
nitsrek Jul 23, 2019
557cc5f
Merge pull request #1289 from Quantipy/i1287-fix_to_dataset
nitsrek Jul 23, 2019
493061e
fix drop_duplicates
nitsrek Jul 31, 2019
cc3822f
extend to_dataset features
nitsrek Jul 31, 2019
2b281ab
Merge pull request #1291 from Quantipy/i1290-fixes_and_features
nitsrek Jul 31, 2019
dd1f0bb
all bugfix for rules application
Aug 1, 2019
535f03e
Merge branch 'develop' of https://github.com/Quantipy/quantipy into d…
Aug 1, 2019
398bed4
bugfix in to_dataset
nitsrek Aug 5, 2019
8b647b2
skip systemvariables like @1 or id_L1 in the repair
nitsrek Aug 6, 2019
f49f6e6
add properties key to columns
nitsrek Aug 7, 2019
c0930d7
add missing property key in SPSS conversion
nitsrek Aug 7, 2019
73c50d6
take over painted index in assign and check for viewlike in _describe…
nitsrek Aug 7, 2019
77fdefa
Merge pull request #1295 from Quantipy/i1294_export_assign_wit_blocknet
nitsrek Aug 7, 2019
30fb6aa
set textkey
nitsrek Aug 8, 2019
1703f29
fixture in to_dataset oe replacements
nitsrek Aug 13, 2019
342fa3f
Merge branch 'quick_bugfix' into develop
nitsrek Aug 13, 2019
9175658
typo
nitsrek Aug 13, 2019
9e33724
Merge branch 'quick_bugfix' into develop
nitsrek Aug 13, 2019
fa34a66
use different approach to avoid pandas warning
nitsrek Aug 13, 2019
94b39a8
Merge branch 'quick_bugfix' into develop
nitsrek Aug 13, 2019
a6332b6
typo
nitsrek Aug 13, 2019
5cfd69e
Merge branch 'quick_bugfix' into develop
nitsrek Aug 13, 2019
345c741
nfirst method
Sep 11, 2019
8abb165
wrong local
Sep 11, 2019
e1fae7c
adding better question labels
Sep 11, 2019
d9d41cb
rename, clean-up
Sep 12, 2019
eaaeec6
Removed apply from DataSet.first_mentions.
jamesrkg Sep 12, 2019
1ebbe7e
adding docstring, type check
Sep 13, 2019
671fb5a
Update README.md with link to python 3 repo.
geirfreysson Sep 23, 2019
745bb7f
bugfix for empty variables
Sep 24, 2019
cbfc661
Revert "bugfix for empty variables"
Sep 24, 2019
82ef628
Merge pull request #1301 from Quantipy/add-python3-info-to-readme
geirfreysson Oct 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/tests/StackName.stack
/tests/ChainName.chain
/tests/ClusterName.cluster
dist/

.coverage
htmlcov/
Expand All @@ -23,18 +24,19 @@ temp.chain
tests/Example Data (A).cache
*.css
*.ttf
*.js
*.eot
*.svg
*.woff

*.js

docs/API/_build/
docs/API/_static/
docs/API/_templates/

*.egg-info
*.egg
.eggs/
.cache

build
.pytest_cache/*
build
8 changes: 8 additions & 0 deletions .pytest_cache/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pytest cache directory #

This directory contains data from the pytest's cache plugin,
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.

**Do not** commit this to version control.

See [the docs](https://docs.pytest.org/en/latest/cache.html) for more information.
278 changes: 278 additions & 0 deletions .pytest_cache/v/cache/nodeids

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Quantipy is an open-source data processing, analysis and reporting software proj

#### Contributors
- Alexander Buchhammer, Alasdair Eaglestone, James Griffiths, Kerstin Müller : https://yougov.co.uk
- Datasmoothie’s Birgir Hrafn Sigurðsson and Geir Freysson: http://datasmoothie.io/
- Datasmoothie’s Birgir Hrafn Sigurðsson and Geir Freysson: http://datasmoothie.com/

### Python 3 compatability
Efforts are underway to port Quantipy to Python 3 in a [seperate repository](https://www.github.com/quantipy/quantipy3).

## Docs
[View the documentation at readthedocs.org](http://quantipy.readthedocs.io/)
Expand Down
Binary file modified docs/API/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/API/_build/doctrees/index.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/Chain.doctree
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/Cluster.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/QuantipyViews.doctree
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/Rim_scheme.doctree
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/View.doctree
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/ViewMapper.doctree
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/quantify_engine.doctree
Binary file not shown.
Binary file modified docs/API/_build/doctrees/sites/api_ref/stack.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/API/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 0288e8257f20bf0e318a1e13f4f950ad
config: 3c8d31b3ee2b61e092a93342a4c7e2d0
tags: 645f666f9bcd5a90fca523b33c5a78b7
16 changes: 16 additions & 0 deletions docs/API/_build/html/_sources/sites/api_ref/00overview.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

API references
==============

.. toctree::
:maxdepth: 3

Chain
Cluster
DataSet
quantify_engine
QuantipyViews
Rim_scheme
Stack
View
ViewMapper
8 changes: 8 additions & 0 deletions docs/API/_build/html/_sources/sites/api_ref/DataSet.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. toctree::
:maxdepth: 3

DataSet
=======

.. autoclass:: quantipy.DataSet
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

=========
``Batch``
=========

``qp.Batch`` is a subclass of ``qp.DataSet`` and is a container for
structuring a ``qp.Link`` collection's specifications.

``qp.Batch`` is not only a subclass of ``qp.DataSet``, it also takes a
DataSet instance as input argument, inheriting a few of its attributes, e.g.
``_meta``, ``_data``, ``valid_tks`` and ``text_key``.
All other ``Batch`` attributes are used as construction plans for populating a
``qp.Stack``, these get stored in the belonging ``DataSet`` meta component in
``_meta['sets']['batches'][batchname]``.

In general, it does not matter in which order ``Batch`` attributes are set by
methods, the class ensures that all attributes are kept consistent.

All next sections are working with the following ``qp.DataSet`` instance::

import quantipy as qp

dataset = qp.DataSet('Example Data (A)')
dataset.read_quantipy('Example Data (A).json', 'Example Data (A).csv')

The json and csv files you can find in ``quantipy/tests``.

.. toctree::
:maxdepth: 5
:includehidden:

01_create_load
02_variables
03_properties
04_subclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. toctree::
:maxdepth: 5
:includehidden:

=========================================
Creating/ Loading a ``qp.Batch`` instance
=========================================

As mentioned, a ``Batch`` instance has a close connection to its belonging
``DataSet`` instance and we can easily create a new ``Batch`` from a ``DataSet``
as per::

batch1 = dataset.add_batch(name='batch1')
batch2 = dataset.add_batch(name='batch2', ci=['c'], weights='weight')

It is also possible to load an already existing instance out of the meta
stored in ``dataset._meta['sets']['batches']``::

batch = dataset.get_batch('batch1')

Both methods, ``.add_batch()`` and ``.get_batch()``, are an easier way to
use the ``__init__()`` method of ``qp.Batch``.

An other way to get a new ``qp.Batch`` instance is to copy an existing one, in
that case all added open ends are removed from the new instance::

copy_batch = batch.copy('copy_of_batch1')
119 changes: 119 additions & 0 deletions docs/API/_build/html/_sources/sites/lib_doc/batch/02_variables.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
.. toctree::
:maxdepth: 5
:includehidden:

===========================================
Adding variables to a ``qp.Batch`` instance
===========================================

-----------------
x-keys and y-keys
-----------------

The included variables in a ``Batch`` constitute the main structure for the
``qp.Stack`` construction plan. Variables can be added as x-keys or y-keys, for
arrays all belonging items are automatically added and the ``qp.Stack`` gets
populated with all cross-tabulations of these keys:

>>> batch.add_x(['q1', 'q2', 'q6'])
>>> batch.add_y(['gender', 'q1'])
Array summaries setup: Creating ['q6'].

x-specific y-keys can be produced by manipulating the main y-keys, this edit
can be extending or replacing the existing keys:

>>> batch.extend_y(['locality', 'ethnicity'], on=['q1'])
>>> batch.replace_y(['locality', 'ethnicity'], on=['q2'])

With these settings the construction plan looks like that:

>>> print batch.x_y_map
OrderedDict([('q1', ['@', 'gender', 'q1', 'locality', 'ethnicity']),
('q2', ['locality', 'ethnicity']),
('q6', ['@']),
(u'q6_1', ['@', 'gender', 'q1']),
(u'q6_2', ['@', 'gender', 'q1']),
(u'q6_3', ['@', 'gender', 'q1'])])

------
Arrays
------

A special case exists if the added variables contain arrays. As default for all
arrays in x-keys array summaries are created (array as x-key and ``'@'``-referenced total as
y-key), see the output below (``Array summaries setup: Creating ['q6'].``).
If array summaries are requested only for a selection of variables or for none,
use ``.make_summaries()``:

>>> batch.make_summaries(None)
Array summaries setup: Creating no summaries!

Arrays can also be transposed (``'@'``-referenced total as x-key and array name
as y-key). If they are not in the batch summary list before, they are
automatically added and depending on the ``replace`` parameter only the
transposed or both types of summaries are added to the ``qp.Stack``:

>>> batch.transpose_array('q6', replace=False)
Array summaries setup: Creating ['q6'].

The construction plan now shows that both summary types are included:

>>> print batch.x_y_map
OrderedDict([('q1', ['@', 'gender', 'q1', 'locality', 'ethnicity']),
('q2', ['locality', 'ethnicity']),
('q6', ['@']),
('@', ['q6']),
(u'q6_1', ['@', 'gender', 'q1']),
(u'q6_2', ['@', 'gender', 'q1']),
(u'q6_3', ['@', 'gender', 'q1'])])

--------------------
Verbatims/ open ends
--------------------

Another special case are verbatims. They will not be aggregated in a ``qp.Stack``,
but they have to be defined in a ``qp.Batch`` to add them later to a ``qp.Cluster``.

There are two different ways to add verbatims: Either all to one ``qp.Cluster``
key or each gets its own key. But both options can be done with the same method.

For splitting the verbatims, set ``split=True`` and insert as many titles as
included verbatims/ open ends:

>>> batch.add_open_ends(['q8a', 'q9a'], break_by=['record_number', 'age'],
split=True, title=['oe_q8', 'oe_q9'])

For collecting all verbatims in one Cluster key, set ``split=False`` and add
only one ``title`` or use the default parameters:

>>> batch.add_open_ends(['q8a', 'q9a'], break_by=['record_number', 'age'])

--------------------
Special aggregations
--------------------

It is possible to add some special aggregations to a ``qp.Batch``, that are
not stored in the main construction plan ``.x_y_map``. One option is to give a
name for a Cluster key in which all y-keys are cross-tabulated against each
other:

>>> batch.add_y_on_y('y-keys')

Another possibility is to add a ``qp.Batch`` instance to an other instance.
The added Batch loses all information about verbatims and ``.y_on_y``, that
means only the main construction plan in ``.x_y_map`` gets adopted. Each of
the two batches is aggregated discretely in the ``qp.Stack``, but the added
instance gets included into the ``qp.Cluster`` of the first ``qp.Batch`` in
a key named by its instance name.

>>> batch1 = dataset.get_batch('batch1')
>>> batch2 = dataset.get_batch('batch2')
>>> batch2.add_x('q2b')
Array summaries setup: Creating no summaries!
>>> batch2.add_y('gender')
>>> batch2.as_addition('batch1')
Batch 'batch2' specified as addition to Batch 'batch1'. Any open end summaries and 'y_on_y' agg. have been removed!

The connection between the two ``qp.Batch`` instances you can see in ``.additional``
for the added instance and in ``._meta['sets']['batches']['batchname']['additions']``
for the first instance.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.. toctree::
:maxdepth: 5
:includehidden:

================================
Set properties of a ``qp.Batch``
================================

The section before explained how the main construction plan (``batch.x_y_map``)
is built, that describes which x-keys and y-keys are used to add ``qp.Link``\s
to a ``qp.Stack``. Now you will get to know how the missing information for the
``Link``\s are defined and which specific views get extracted for the
``qp.Cluster`` by adding some property options the ``qp.Batch`` instance.

----------------------------------------
Filter, weights and significance testing
----------------------------------------

``qp.Link``\s can be added to a ``qp.Stack`` data_key-level by defining its x
and y-keys, which is already done in ``.x_y_map``, and setting a filter.
This property can be edited in a ``qp.Batch`` instance with the
following methods:

>>> batch.add_filter('men only', {'gender': 1})
>>> batch.extend_filter({'q1': {'age': [20, 21, 22, 23, 24, 25]}})

Filters can be added globally or for a selection of x-keys only. Out of the
global filter, ``.sample_size`` is automatically calculated for each ``qp.Batch``
defintion.

Now all information are collected in the ``qp.Batch`` instance and the ``Stack``
can be populated with ``Link``\s in form of ``stack[data_key][filter_key][x_key][y_key]``.

For each ``Link`` ``qp.View``\s can be added, these views depend on a weight
definition, which is also defined in the ``qp.Batch``:

>>> batch.set_weights(['weight_a'])

Significance tests are a special ``View``; the sig. levels which they are
calculated on can be added to the ``qp.Batch`` like this:

>>> batch.set_sigtests(levels=[0.05])

-----------------------
Cell items and language
-----------------------

As ``qp.Stack`` is a container for a large amount of aggregations, it will
accommodate various ``qp.View``\s. The ``qp.Batch`` property ``.cell_items`` is
used to define which specfic ``Views`` will be taken to create a ``qp.Cluster``:

>>> batch.set_cell_items(['c', 'p'])

The property ``.language`` allows the user to define which ``text`` labels from
the meta data should be used for the extracted ``Views`` by entering a valid
text key:

>>> batch.set_language('en-GB')
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.. toctree::
:maxdepth: 5
:includehidden:

================================
Inherited ``qp.DataSet`` methods
================================

Being a ``qp.DataSet`` subclasss, ``qp.Batch`` inherits some of its methods.
The important ones are these which allow the manipulation of the meta component.
That means meta-edits can be applied globally (run methods on ``qp.DataSet``) or
``Batch``-specific (run methods on ``qp.Batch``). Batch meta-edits
always overwrite global meta-edits and while building a ``qp.Cluster`` from a
``qp.Batch``, the modified meta information is taken from ``.meta_edits``.

The following methods can be used to create meta-edits for a ``qp.Batch``:

>>> batch.hiding('q1', [2], axis='y')
>>> batch.sorting('q2', fix=[97, 98])
>>> batch.slicing('q1', [1, 2, 3, 4, 5], axis='x')
>>> batch.set_variable_text('gender', 'Gender???')
>>> batch.set_value_texts('gender', {1: 'Men', 2: 'Women'})
>>> batch.set_property('q1', 'base_text', 'This var has a second filter.')

Some methods are not allowed to be used for a ``Batch``. These will raise a
``NotImplementedError`` to prevent inconsistent case and meta data states.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
======
Builds
======

.. toctree::
:maxdepth: 5
:includehidden:

01_chains
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. toctree::
:maxdepth: 5
:includehidden:

=================
Combining results
=================

--------------------------------
Organizing ``View`` aggregations
--------------------------------

-------------------------------
Creating ``Chain`` aggregations
-------------------------------

What is a ``Chain``?
--------------------

Customizing results
-------------------
Loading