Skip to main content

MoveColumn

Downloads PyPI - Status GitHub issues GitHub stars GitHub license

About

A creative package to move columns in Python dataframes.

Requirements

movecolumn requires python 3.6 or greater.

Installation

Install with pip:

pip install movecolumn

If you are using the old version of movecolumn and want to update it:

pip install --upgrade movecolumn

Examples

import movecolumn as mc

# move column b of dataframe df to first position
df1 = mc.MoveTo1(df,'b')

# move column d to 2nd position
df2 = mc.MoveTo2(df,'d')

# move column d to 3rd position
df3 = mc.MoveTo3(df,'d')

# move column e to 4th position
df4 = mc.MoveTo4(df,'e')

# move column e to 5th position
df5 = mc.MoveTo5(df,'e')

# move column c to last position
df6 = mc.MoveToLast(df,'c')

# move column d to nth position, n = 1 for left most column, 2 for second column
df7 = mc.MoveToN(df,'f',3)

Release files for movecolumn 0.0.7

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

Source distribution (sdist)

Source distribution for movecolumn 0.0.7
File Size Uploaded
movecolumn-0.0.7.tar.gz 6.4 kB Details

Release files / movecolumn-0.0.7.tar.gz

Download URL movecolumn-0.0.7.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1c252bcc8f68d11e762973c91cc403363423b71e74dc7a3477ad993f6cd1e628
BLAKE2b-256 checksum
How to use checksums
e55e205e8bf8b080117cb6bbe9c19a83b7059ab875eb2cab2d89b27ab795fe12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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