Skip to main content

#Description: this function: <l_pdseries_2_l_dfs> converts a list of #pandas series to list of pandas data frame. For further easy analysis of #list of dfs. Many times we are faced that we have a list of list of pandas df. # this function helps in such situations

#To use:

import l_pdseries_2_l_dfs as s2df

l_series_2_l_dfs = s2df.l_pdseries_2_l_dfs(l_series, ndfs)

#where l_series is a list of pandas series. It must be of the shape:

>>shape_of_l_series = [inner_element.shape for inner_element in l_series] >>shape_of_l_series

[(1232,),

(1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1232,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (1110,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (234,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (1930,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,), (841,)]

# so we have a list of series of pandas series with shapes each: [(1232,), (1110,), (234,), (1930,), #(841,)] #So if we want to create a data frame out of these list of series we can use the above module. #Again we have 33 series (columns) of each of the shape, so we want to make a data frame with 33. Also, #we have 5 different series so we want to have 5 dfs. hence, ndfs = 5 in this case. please choose #according to your data the value of ndfs. correct value of ndfs is imporant otherwise it will throw #error. The return value of module is a list of data frames of shape: [(1207, 33), (1086, 33), (234, #33), (1905, 33), (816, 33)]

Release files for l-pdseries-2-l-dfs 0.1

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

Source distribution (sdist)

Source distribution for l-pdseries-2-l-dfs 0.1
File Size Uploaded
l_pdseries_2_l_dfs-0.1.tar.gz 2.2 kB Details

Release files / l_pdseries_2_l_dfs-0.1.tar.gz

Download URL l_pdseries_2_l_dfs-0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aeaaed4f5f26e7a4f4c0188bb1de83f7ed394e58d0d2bb4b53c8c50eface07f4
BLAKE2b-256 checksum
How to use checksums
405c84f89cf556f5f384fde135a00e75980654d9af85711b9e8191fe51e81d17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1 This release

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