meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:python [2017/02/23 08:24] – external edit 127.0.0.1 | software:python [2021/12/14 20:36] (current) – [Pandas/Geopandas] christian | ||
---|---|---|---|
Line 1: | Line 1: | ||
Useful links and snippets regarding Python and Jupyter notebooks | Useful links and snippets regarding Python and Jupyter notebooks | ||
+ | |||
+ | ====== Modules ====== | ||
+ | |||
+ | * The uncompromising Python code formatter [[https:// | ||
+ | |||
===== iPython/ | ===== iPython/ | ||
- | * [[https:// | + | |
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Quick and dirty ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * <code python> | ||
+ | # py3 | ||
+ | from urllib import parse | ||
+ | parse.unquote(""" | ||
+ | # or in py2.7 | ||
+ | import urllib | ||
+ | urllib.unquote(" | ||
+ | </ | ||
+ | * Translate coordinate reference system from '' | ||
+ | * <code python> | ||
+ | import sys | ||
+ | from osgeo import osr | ||
+ | prjtxt = """ | ||
+ | srs = osr.SpatialReference() | ||
+ | print 'Proj4 is: %s' % srs.ExportToProj4() | ||
+ | Proj4 is: <string with proj4 parameters follows> | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Pandas/ | ||
+ | |||
+ | * Invert a single column of a Pandas Dataframe: '' | ||
+ | * Joining multiple overlapping column names from multiple dataframes: '' | ||
+ | * Cross-section indexing of a multi-indexed dataframe - using levels: '' | ||
+ | * [[https:// | ||
+ | * Going from a regular dataframe to geopandas data frame: '' | ||
+ | * Obtaining unique values for Multi-index levels: '' | ||
+ | * Drop a level of multi-index into a column: '' | ||
+ | * Generating a column with conditional values based on an existing column [[https:// | ||
===== Stuff related to modules ===== | ===== Stuff related to modules ===== | ||
- | * [[osgeo.ogr]] | + | |
+ | * [[http:// | ||
+ | * Installing a new module in Enthough Canopy Light' | ||
- | * Installing a new module in Enthough Canopy Light' | + | {{tag> |
- | {{tag> Python Programming Jupyter iPython notebooks}} |