|
579 | 579 | "| Split Merged Rows \t| Works well on cell values with no spaces \t|\n",
|
580 | 580 | "| Split Merged Columns \t| Works well on cell values with no spaces \t|\n",
|
581 | 581 | "| Fix Decimal Format \t| To fix thousand and decimal separators \t|\n",
|
582 |
| - "| Fix Date Format \t| To handle and modify incorrect date separators \t|" |
| 582 | + "| Fix Date Format \t| To handle and modify incorrect date separators \t|\n", |
| 583 | + "| Fix Characters \t| To fix incorrect character detections \t|\n" |
583 | 584 | ],
|
584 | 585 | "metadata": {
|
585 | 586 | "collapsed": false
|
|
606 | 607 | {
|
607 | 608 | "cell_type": "markdown",
|
608 | 609 | "source": [
|
609 |
| - "## 6.1 Split Merged Rows" |
| 610 | + "## 6.1 Split Merged Rows\n", |
| 611 | + " \"\"\"\n", |
| 612 | + " To split the merged rows into possible multiple rows\n", |
| 613 | + " :return: reformatted list of dataframes\n", |
| 614 | + " \"\"\"\n" |
610 | 615 | ],
|
611 | 616 | "metadata": {
|
612 | 617 | "collapsed": false
|
|
629 | 634 | {
|
630 | 635 | "cell_type": "markdown",
|
631 | 636 | "source": [
|
632 |
| - "## 6.2 Split Merged Columns\n" |
| 637 | + "## 6.2 Split Merged Columns\n", |
| 638 | + "\n", |
| 639 | + " \"\"\"\n", |
| 640 | + " To split the merged columns into possible multiple columns\n", |
| 641 | + " :param columns_idx: user preferred columns indices.\n", |
| 642 | + " Default loops through all columns to find numeric or decimal columns\n", |
| 643 | + " :param force_split: To force split through the columns\n", |
| 644 | + " :return: reformatted list of dataframes\n", |
| 645 | + " \"\"\"\n" |
633 | 646 | ],
|
634 | 647 | "metadata": {
|
635 | 648 | "collapsed": false
|
|
652 | 665 | {
|
653 | 666 | "cell_type": "markdown",
|
654 | 667 | "source": [
|
655 |
| - "## 6.3 Fix Decimal Format\n" |
| 668 | + "## 6.3 Fix Decimal Format\n", |
| 669 | + "\n", |
| 670 | + "\n", |
| 671 | + " \"\"\"\n", |
| 672 | + " To fix decimal and thousands separator values. Often commas as detected as period\n", |
| 673 | + " :param columns_idx: user preferred columns indices.\n", |
| 674 | + " Default loops through all columns to find numeric or decimal columns\n", |
| 675 | + " :param decimal_separator: preferred decimal separator\n", |
| 676 | + " :param thousands_separator: preferred thousands separator\n", |
| 677 | + " :param decimal_position: preferred decimal position\n", |
| 678 | + " :return: corrected list of dataframes\n", |
| 679 | + " \"\"\"\n" |
656 | 680 | ],
|
657 | 681 | "metadata": {
|
658 | 682 | "collapsed": false
|
|
675 | 699 | {
|
676 | 700 | "cell_type": "markdown",
|
677 | 701 | "source": [
|
678 |
| - "## 6.4 Fix Date Format\n" |
| 702 | + "## 6.4 Fix Date Format\n", |
| 703 | + "\n", |
| 704 | + " \"\"\"\n", |
| 705 | + " To fix date formats of the column\n", |
| 706 | + " Eg: 12|1212020 as 12/12/2020\n", |
| 707 | + " :param columns_idx: user preferred columns indices.\n", |
| 708 | + " Default loops through all columns to find Date Columns\n", |
| 709 | + " :param delimiter: \"/\" or \"-\" whatelse you prefer\n", |
| 710 | + " :return: correted list of dataframes\n", |
| 711 | + " \"\"\"\n" |
679 | 712 | ],
|
680 | 713 | "metadata": {
|
681 | 714 | "collapsed": false
|
|
695 | 728 | }
|
696 | 729 | }
|
697 | 730 | },
|
| 731 | + { |
| 732 | + "cell_type": "markdown", |
| 733 | + "source": [ |
| 734 | + "## 6.5 Fix Characters\n", |
| 735 | + "\n", |
| 736 | + " \"\"\"\n", |
| 737 | + " To replace incorrect character detections\n", |
| 738 | + " Eg: $123,45.0I as $123,45.01\n", |
| 739 | + " :param columns_idx: user preferred columns indices.\n", |
| 740 | + " Default loops through all columns to find Date Columns\n", |
| 741 | + " :param replace_ref: the replacement dictionary for reference\n", |
| 742 | + " Eg: {\"I\": \"1\"}\n", |
| 743 | + " :return: correted list of dataframes\n", |
| 744 | + " \"\"\"\n" |
| 745 | + ], |
| 746 | + "metadata": { |
| 747 | + "collapsed": false |
| 748 | + } |
| 749 | + }, |
| 750 | + { |
| 751 | + "cell_type": "code", |
| 752 | + "execution_count": null, |
| 753 | + "outputs": [], |
| 754 | + "source": [ |
| 755 | + "corrected_table_dataframes = corrections.fix_characters(self, columns_idx=[0, 1], replace_ref={\"I\": \"1\", \"S\": \"$\"})" |
| 756 | + ], |
| 757 | + "metadata": { |
| 758 | + "collapsed": false, |
| 759 | + "pycharm": { |
| 760 | + "name": "#%%\n" |
| 761 | + } |
| 762 | + } |
| 763 | + }, |
698 | 764 | {
|
699 | 765 | "cell_type": "markdown",
|
700 | 766 | "source": [
|
|
776 | 842 | {
|
777 | 843 | "cell_type": "markdown",
|
778 | 844 | "source": [
|
779 |
| - "# 8. Support & Contact\n", |
| 845 | + "# 8. View transactions\n", |
| 846 | + "\n", |
| 847 | + "To view all the transactions that were triggered in the last 24 hours" |
| 848 | + ], |
| 849 | + "metadata": { |
| 850 | + "collapsed": false |
| 851 | + } |
| 852 | + }, |
| 853 | + { |
| 854 | + "cell_type": "code", |
| 855 | + "execution_count": null, |
| 856 | + "outputs": [], |
| 857 | + "source": [ |
| 858 | + "et_sess.view_transactions()" |
| 859 | + ], |
| 860 | + "metadata": { |
| 861 | + "collapsed": false, |
| 862 | + "pycharm": { |
| 863 | + "name": "#%%\n" |
| 864 | + } |
| 865 | + } |
| 866 | + }, |
| 867 | + { |
| 868 | + "cell_type": "markdown", |
| 869 | + "source": [ |
| 870 | + "Return a list of transactions, with each record having below properties\n", |
| 871 | + "\n", |
| 872 | + "|Property | Description |\n", |
| 873 | + "|---|---|\n", |
| 874 | + "|JobStatus | Status of the job|\n", |
| 875 | + "|Pages | number of pages of the input; can also be considered as number of credits consumed|\n", |
| 876 | + "|createdon | timestamp when the request was processed|\n", |
| 877 | + "|requested_filename | Filename received in the request|\n", |
| 878 | + "|txn_id | Unique identifier of the transaction, also referred as JobId to retrieve output via `get_result(JobId)`|" |
| 879 | + ], |
| 880 | + "metadata": { |
| 881 | + "collapsed": false |
| 882 | + } |
| 883 | + }, |
| 884 | + { |
| 885 | + "cell_type": "markdown", |
| 886 | + "source": [ |
| 887 | + "# 9. Support & Contact\n", |
780 | 888 | "\n",
|
781 | 889 | "Please do not hesitate to approach our developer team at [email protected] for any assitance needed or to report a bug"
|
782 | 890 | ],
|
|
0 commit comments