Open jwzimmer-zz opened 3 years ago
If we want to include the Pride and Prejudice toy matrix (from https://github.com/jwzimmer/tv-tropening/issues/6#issuecomment-879425721) in the paper:
\\begin{tabular}{lrrrrrrrrrrrrrrr}\n\\toprule\n{} & gossiping<->confidential & judgemental<->accepting & independent<->codependent & scandalous<->proper & selfish<->altruistic & cunning<->honorable & trash<->treasure & young<->old & arrogant<->humble & wholesome<->salacious & sheltered<->street-smart & rich<->poor & quarrelsome<->warm & masculine<->feminine & rude<->respectful \\\\\n\\midrule\n259 & 32.579875 & -25.77425 & -24.1915 & 33.46175 & 8.399375 & 29.580625 & 8.70275 & 2.43275 & -13.626125 & -15.341375 & -11.676 & -39.01425 & -15.00575 & -29.178375 & -12.949625 \\\\\n260 & 19.579875 & -19.57425 & -34.3915 & -4.43825 & 13.199375 & 14.280625 & 26.00275 & -22.96725 & -1.926125 & -25.541375 & 11.224 & 21.38575 & -7.80575 & 20.421625 & -4.749625 \\\\\n261 & -32.620125 & -33.77425 & 39.7085 & 24.56175 & -27.200625 & -9.019375 & -41.59725 & 22.23275 & -24.226125 & 22.758625 & -39.876 & 7.48575 & -19.40575 & 2.721625 & -16.449625 \\\\\n262 & -40.720125 & -16.17425 & 23.6085 & -39.63825 & -42.500625 & -42.419375 & -55.29725 & -24.06725 & -32.026125 & 34.858625 & 17.224 & 33.98575 & -16.30575 & -18.678375 & -30.449625 \\\\\n263 & 9.279875 & 31.52575 & 28.8085 & 31.26175 & 22.999375 & 31.280625 & 12.70275 & -28.26725 & 30.473875 & -29.641375 & -37.776 & -34.01425 & 41.09425 & -1.778375 & 30.250375 \\\\\n264 & 14.979875 & 38.12575 & 25.1085 & 25.66175 & 25.899375 & 29.380625 & 16.40275 & -35.76725 & 37.973875 & -32.941375 & -42.276 & -31.61425 & 38.09425 & 46.121625 & 30.550375 \\\\\n265 & -50.420125 & -15.67425 & 26.0085 & -37.33825 & -40.300625 & -32.019375 & -32.09725 & -37.26725 & -29.526125 & 29.958625 & -34.576 & 25.68575 & -25.30575 & 40.821625 & -34.949625 \\\\\n266 & 25.979875 & 39.42575 & 24.0085 & 40.66175 & 34.299375 & 35.880625 & 19.60275 & -20.76725 & 45.073875 & -33.841375 & -38.276 & 14.38575 & 44.29425 & 48.421625 & 37.650375 \\\\\n267 & -50.420125 & -28.17425 & 39.6085 & -9.43825 & -28.800625 & -23.619375 & -22.69725 & 31.93275 & -17.826125 & 13.758625 & -14.676 & 19.68575 & -20.20575 & 40.321625 & -25.049625 \\\\\n268 & -32.920125 & -41.47425 & -14.7915 & 33.46175 & -36.300625 & -30.219375 & -37.09725 & 45.53275 & -37.626125 & 30.258625 & -20.376 & -40.11425 & -36.40575 & 14.921625 & -38.849625 \\\\\n\\bottomrule\n\\end{tabular}\n
The toy matrix from https://github.com/jwzimmer/tv-tropening/issues/6#issuecomment-882740974:
\\begin{tabular}{lrrrrr}\n\\toprule\n{} & gossiping<->confidential & judgemental<->accepting & independent<->codependent & scandalous<->proper & selfish<->altruistic \\\\\n\\midrule\n259 & 32.579875 & -25.77425 & -24.1915 & 33.46175 & 8.399375 \\\\\n260 & 19.579875 & -19.57425 & -34.3915 & -4.43825 & 13.199375 \\\\\n261 & -32.620125 & -33.77425 & 39.7085 & 24.56175 & -27.200625 \\\\\n262 & -40.720125 & -16.17425 & 23.6085 & -39.63825 & -42.500625 \\\\\n263 & 9.279875 & 31.52575 & 28.8085 & 31.26175 & 22.999375 \\\\\n264 & 14.979875 & 38.12575 & 25.1085 & 25.66175 & 25.899375 \\\\\n265 & -50.420125 & -15.67425 & 26.0085 & -37.33825 & -40.300625 \\\\\n266 & 25.979875 & 39.42575 & 24.0085 & 40.66175 & 34.299375 \\\\\n267 & -50.420125 & -28.17425 & 39.6085 & -9.43825 & -28.800625 \\\\\n268 & -32.920125 & -41.47425 & -14.7915 & 33.46175 & -36.300625 \\\\\n\\bottomrule\n\\end{tabular}\n
Note to self you forgot to print the strings, so you need to print those before anything will recognize the formatting : \
"Dfsmall", the 10 characters from Pride and Prejudice x the 5 most relevant traits (with means removed previously), with the names displayed better: names = df_traits["name"].iloc[259:269]
, print(names.to_markdown())
gossiping<->confidential | judgemental<->accepting | independent<->codependent | scandalous<->proper | selfish<->altruistic | |
---|---|---|---|---|---|
Mr. Darcy | 32.5799 | -25.7742 | -24.1915 | 33.4618 | 8.39938 |
Elizabeth Bennet | 19.5799 | -19.5742 | -34.3915 | -4.43825 | 13.1994 |
Mr. William Collins | -32.6201 | -33.7742 | 39.7085 | 24.5618 | -27.2006 |
George Wickham | -40.7201 | -16.1742 | 23.6085 | -39.6382 | -42.5006 |
Charles Bingley | 9.27988 | 31.5258 | 28.8085 | 31.2618 | 22.9994 |
Georgiana Darcy | 14.9799 | 38.1258 | 25.1085 | 25.6618 | 25.8994 |
Lydia Bennet | -50.4201 | -15.6742 | 26.0085 | -37.3382 | -40.3006 |
Jane Bennet | 25.9799 | 39.4258 | 24.0085 | 40.6618 | 34.2994 |
Mrs. Bennet | -50.4201 | -28.1742 | 39.6085 | -9.43825 | -28.8006 |
Lady Catherine de Bourgh | -32.9201 | -41.4742 | -14.7915 | 33.4618 | -36.3006 |
If we want to include an example of the original data in the paper (maybe in an appendix or something), here is a latex table (untested) for the first 5 rows of the uncleaned data: