Skip to main content
pip install a-pandas-ex-df-updater
#    Update a DataFrame/Series with the values of another.

    from a_pandas_ex_df_updater import pd_add_df_updater

    pd_add_df_updater()



    df1 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),

                       columns=['a', 'b', 'c'])

    df2 = pd.DataFrame(np.array([[11, 2, 3], [4, 55, 6], [7, 8, 9], [17, 2, 93]]),

                       columns=['a', 'x', 'y'])





    df3=df1.ds_update(forupdate=df2,update_existing_values=True, add_new_columns=False,add_new_rows=False)



    df1

       a  b  c

    0  1  2  3

    1  4  5  6

    2  7  8  9

    df2

        a   x   y

    0  11   2   3

    1   4  55   6

    2   7   8   9

    3  17   2  93

    df3

        a  b  c

    0  11  2  3

    1   4  5  6

    2   7  8  9









    df3=df1.ds_update(forupdate=df2,update_existing_values=True, add_new_columns=True,add_new_rows=False)



    df1

       a  b  c

    0  1  2  3

    1  4  5  6

    2  7  8  9

    df2

        a   x   y

    0  11   2   3

    1   4  55   6

    2   7   8   9

    3  17   2  93

    df3

        a  b  c   x  y

    0  11  2  3   2  3

    1   4  5  6  55  6

    2   7  8  9   8  9









    df3=df1.ds_update(forupdate=df2,update_existing_values=True, add_new_columns=True,add_new_rows=True)



    df1

       a  b  c

    0  1  2  3

    1  4  5  6

    2  7  8  9

    df2

        a   x   y

    0  11   2   3

    1   4  55   6

    2   7   8   9

    3  17   2  93

    df3

        a    b    c   x   y

    0  11  2.0  3.0   2   3

    1   4  5.0  6.0  55   6

    2   7  8.0  9.0   8   9

    3  17  NaN  NaN   2  93









    df1.ds_update(forupdate=df2,update_existing_values=False, add_new_columns=True,add_new_rows=True)



    df1

       a  b  c

    0  1  2  3

    1  4  5  6

    2  7  8  9

    df2

        a   x   y

    0  11   2   3

    1   4  55   6

    2   7   8   9

    3  17   2  93

    df3

        a    b    c   x   y

    0   1  2.0  3.0   2   3

    1   4  5.0  6.0  55   6

    2   7  8.0  9.0   8   9

    3  17  NaN  NaN   2  93



        Parameters:

            df: Union[pd.Series, pd.DataFrame]

            forupdate: Union[pd.Series, pd.DataFrame]

            update_existing_values:bool

                (default=True)

            add_new_columns=True

                (default=True)

            add_new_rows=True

                (default=True)



        Returns:

            Union[pd.Series, pd.DataFrame]

Metadata

Release files for a-pandas-ex-df-updater 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a-pandas-ex-df-updater 0.11
File Size Uploaded Provenance Actions
a_pandas_ex_df_updater-0.11.tar.gz 4.3 kB Without provenance Details for a_pandas_ex_df_updater-0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-df-updater 0.11
File Interpreter ABI Platform Actions
a_pandas_ex_df_updater-0.11-py3-none-any.whl Python 3 none any Details for a_pandas_ex_df_updater-0.11-py3-none-any.whl

Total release size: 10.5 kB

Release files / a_pandas_ex_df_updater-0.11.tar.gz

Download URL a_pandas_ex_df_updater-0.11.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
56abc46e355071f131e0cb9cc34b3036e33e2846889c17b25704777492e3e05f
BLAKE2b-256 checksum
How to use checksums
890180e6b2c39f1cdbc83add1b01484d645d7f2cebc473614609c8a490f03305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / a_pandas_ex_df_updater-0.11-py3-none-any.whl

Download URL a_pandas_ex_df_updater-0.11-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68c60000c553b7c7987702a016178264320bb39ad1e086ecb4200f535e7a1f65
BLAKE2b-256 checksum
How to use checksums
24c3fe63918894d188b0e7ffee2471343202b80a6f115a36f6a9079bedca0dea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for a-pandas-ex-df-updater 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page