meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
software:python [2019/10/05 00:30] – [Pandas] christian | software:python [2019/10/05 01:53] – [Pandas/Geopandas] christian | ||
---|---|---|---|
Line 40: | Line 40: | ||
- | ==== Pandas ==== | + | ==== Pandas/ |
* Invert a single column of a Pandas Dataframe: ``df.col2 = df.col2.values[:: | * Invert a single column of a Pandas Dataframe: ``df.col2 = df.col2.values[:: | ||
* Joining multiple overlapping column names from multiple dataframes: ``pd.concat(data, | * Joining multiple overlapping column names from multiple dataframes: ``pd.concat(data, | ||
+ | * Cross-section indexing of a multi-indexed dataframe - using levels: ``concatdf.xs(' | ||
+ | * [[https:// | ||
+ | * Going from a regular dataframe to geopandas data frame: ``gdf = geopandas.GeoDataFrame(df, | ||
+ | * Obtaining unique values for Multi-index levels: ``concatdf.index.unique(level=1)`` | ||
+ | * Drop a level of multi-index into a column: ``df.reset_index(level=[...])`` - via [[https:// | ||
Line 54: | Line 59: | ||
* Installing a new module in Enthough Canopy Light' | * Installing a new module in Enthough Canopy Light' | ||
- | {{tag> Python Programming Jupyter iPython notebooks}} | + | {{tag> Python Programming Jupyter iPython notebooks |