Skip to main content

Vertical to horizontal (Series to DataFrame with multiple columns)

pip install a-pandas-ex-vertical-to-horizontal

from a_pandas_ex_vertical_to_horizontal import pd_add_vertical_to_horizontal

pd_add_vertical_to_horizontal()



df = pd.concat(

    [pd.Series(range(0, 20)), pd.Series(range(1000, 1020))], axis=0

).reset_index(drop=True)





df1 = df.s_vertical_to_horizontal(number_of_cells_to_join=3, drop_redundant=False, negative=False)

df2 = df.s_vertical_to_horizontal(number_of_cells_to_join=6, drop_redundant=True, negative=True)









print(df.to_string())

0        0

1        1

2        2

3        3

4        4

5        5

6        6

7        7

8        8

9        9

10      10

11      11

12      12

13      13

14      14

15      15

16      16

17      17

18      18

19      19

20    1000

21    1001

22    1002

23    1003

24    1004

25    1005

26    1006

27    1007

28    1008

29    1009

30    1010

31    1011

32    1012

33    1013

34    1014

35    1015

36    1016

37    1017

38    1018

39    1019





print(df1.to_string())

    col_0  col_1  col_2

0       0   1019   1018

1       1      0   1019

2       2      1      0

3       3      2      1

4       4      3      2

5       5      4      3

6       6      5      4

7       7      6      5

8       8      7      6

9       9      8      7

10     10      9      8

11     11     10      9

12     12     11     10

13     13     12     11

14     14     13     12

15     15     14     13

16     16     15     14

17     17     16     15

18     18     17     16

19     19     18     17

20   1000     19     18

21   1001   1000     19

22   1002   1001   1000

23   1003   1002   1001

24   1004   1003   1002

25   1005   1004   1003

26   1006   1005   1004

27   1007   1006   1005

28   1008   1007   1006

29   1009   1008   1007

30   1010   1009   1008

31   1011   1010   1009

32   1012   1011   1010

33   1013   1012   1011

34   1014   1013   1012

35   1015   1014   1013

36   1016   1015   1014

37   1017   1016   1015

38   1018   1017   1016

39   1019   1018   1017





print(df2.to_string())

    col_0  col_1  col_2  col_3  col_4  col_5

0       0      1      2      3      4      5

6       6      7      8      9     10     11

12     12     13     14     15     16     17

18     18     19   1000   1001   1002   1003

24   1004   1005   1006   1007   1008   1009

30   1010   1011   1012   1013   1014   1015

36   1016   1017   1018   1019      0      1

Metadata

Release files for a-pandas-ex-vertical-to-horizontal 0.10

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-vertical-to-horizontal 0.10
File Size Uploaded Provenance Actions
a_pandas_ex_vertical_to_horizontal-0.10.tar.gz 5.1 kB Without provenance Details for a_pandas_ex_vertical_to_horizontal-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-vertical-to-horizontal 0.10
File Interpreter ABI Platform Actions
a_pandas_ex_vertical_to_horizontal-0.10-py3-none-any.whl Python 3 none any Details for a_pandas_ex_vertical_to_horizontal-0.10-py3-none-any.whl

Total release size: 11.6 kB

Release files / a_pandas_ex_vertical_to_horizontal-0.10.tar.gz

Download URL a_pandas_ex_vertical_to_horizontal-0.10.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1890d9e33a607f36a0fe2625f26eb24e5f97f4606d5a634bdd38b45a1e1975cf
BLAKE2b-256 checksum
How to use checksums
80dcf8b4a41ff7aba4afb5107200b69dd2d062bb4629d0e279b3a9c97dbda082
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_vertical_to_horizontal-0.10-py3-none-any.whl

Download URL a_pandas_ex_vertical_to_horizontal-0.10-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceac5eb9d0851c42bfb4f41fe92d50c566093acbb19f3bf1ac4a539041c10c9b
BLAKE2b-256 checksum
How to use checksums
2f3930d68f53783609b5cb9d169d31115e8b8919c5d29a8bb402e7e9b3f204ea
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-vertical-to-horizontal 0.10

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.10 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