R-Tree and Quadtree Comparison

Here’s paper which has pretty nice comparison of QuadTrees and R Trees: Quadtree and R-tree Indexes in Oracle Spatial: A Comparison using GIS Data Some differences: Quadtrees require fine-tuning by choosing appropriate tiling level in order to optimize performance. No specific tuning is required for R-Trees. Quadtree can be implemented on top of existing B-tree. … Read more

In Python pandas, start row index from 1 instead of zero without creating additional column

Just assign directly a new index array: df.index = np.arange(1, len(df) + 1) Example: In [151]: df = pd.DataFrame({‘a’:np.random.randn(5)}) df Out[151]: a 0 0.443638 1 0.037882 2 -0.210275 3 -0.344092 4 0.997045 In [152]: df.index = np.arange(1,len(df)+1) df Out[152]: a 1 0.443638 2 0.037882 3 -0.210275 4 -0.344092 5 0.997045 Or just: df.index = df.index … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)