alex_bn_lee

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Python Study

上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页

Study of Python.
[986] Filter rows by containing a particular word in Pandas
摘要:In Pandas, you can filter rows based on whether a specific column contains a particular word or substring. Here are a few ways to achieve this: Using  阅读全文

posted @ 2024-04-23 08:56 McDelfino 阅读(6) 评论(0) 推荐(0) 编辑

[985] Filter by Column Value & Multiple Conditions in Pandas dataframe
摘要:ref: Ways to filter Pandas DataFrame by column values Filter by Column Value: To select rows based on a specific column value, use the index chain met 阅读全文

posted @ 2024-04-23 08:34 McDelfino 阅读(14) 评论(0) 推荐(0) 编辑

[984] Using geopandas to read geodatabase
摘要:Like this: gdf_NSW = gpd.read_file(path_cadastre, layer="NSW") path_cadastre: the filepath of the geodatabase. layer="NSW": the different feature file 阅读全文

posted @ 2024-04-22 12:44 McDelfino 阅读(2) 评论(0) 推荐(0) 编辑

[983] Add a notification after finishing the Python script
摘要:ref: How to implement a Python desktop notifier using the plyer module You can generate a notification after your Python code finishes executing using 阅读全文

posted @ 2024-03-18 13:33 McDelfino 阅读(19) 评论(0) 推荐(0) 编辑

[982] Print and save a JSON file with indentation in Python
摘要:Certainly! To print a JSON file with indentation in Python, you can use the json module. Here’s an example of how to do it: import json # Your JSON da 阅读全文

posted @ 2024-03-05 07:35 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[981] JSON module in Python
摘要:In Python, the json module provides functions for encoding and decoding JSON data. Here's a brief explanation of the commonly used functions: json.dum 阅读全文

posted @ 2024-02-26 06:49 McDelfino 阅读(3) 评论(0) 推荐(0) 编辑

[980] Send an email with Python and Sendgrid!
该文被密码保护。

posted @ 2024-02-23 11:33 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

[978] The way that KML shows the local file
该文被密码保护。

posted @ 2024-02-22 12:02 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

[977] Using AWS Lambda Function to run a local Python file
该文被密码保护。

posted @ 2024-02-21 14:27 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

[976] How to install a Python Dependency on AWS Lambda
摘要:ref: How to install a Python Dependency on AWS Lambda (2023) Create a folder to save the Python depenency and right click the folder to open the termi 阅读全文

posted @ 2024-02-21 06:53 McDelfino 阅读(6) 评论(0) 推荐(0) 编辑

[975] Creating a POSTMAN Api | AWS API Gateway Passing Data to AWS Lambda
摘要:ref: AWS Lambda Function URLs ref: Guide to AWS Lambda Function URLs ref: Test your Lambda function with Postman 1. Create a Lambda Function aws -> Se 阅读全文

posted @ 2024-02-20 10:40 McDelfino 阅读(29) 评论(0) 推荐(0) 编辑

[974] Amazon S3 related stuff
摘要:📋 - Prerequisite: Setting up Amazon S3 📋 - Getting started with Amazon S3 📺 - Getting started with Amazon S3 - Demo | Amazon Web Services 📋 - What 阅读全文

posted @ 2024-02-16 12:08 McDelfino 阅读(4) 评论(0) 推荐(0) 编辑

[973] FME related trainings
摘要:2019 FME Desktop Basic Training Course 2019 FME Desktop Basic Training Course FME Desktop Basic Training Manual 2019 FME Desktop Advanced Training Cou 阅读全文

posted @ 2024-02-15 10:59 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

[972] Remove specific sheets from an Excel file
摘要:To remove specific sheets from an Excel file, you can use the openpyxl library in Python. Here's how you can do it: from openpyxl import load_workbook 阅读全文

posted @ 2024-02-13 06:20 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

[971] [Keep original formats] Combine multiple Excel files into one Excel file with multiple sheets
摘要:If the existing Excel file has special formatting that prevents reading it directly with Pandas, you can use a library like openpyxl to handle the app 阅读全文

posted @ 2024-02-12 14:15 McDelfino 阅读(4) 评论(0) 推荐(0) 编辑

[970] Combine multiple Excel files into one Excel file with multiple sheets
摘要:You can combine multiple Excel files into one Excel file with multiple sheets using the Pandas library in Python. Here's a general approach: Read each 阅读全文

posted @ 2024-02-12 14:13 McDelfino 阅读(10) 评论(0) 推荐(0) 编辑

[969] Add a spatial reference (a coordinate reference system, CRS) to a GeoDataFrame in GeoPandas
摘要:To add a spatial reference (a coordinate reference system, CRS) to a GeoDataFrame in GeoPandas, you can set the crs attribute of the GeoDataFrame to t 阅读全文

posted @ 2024-02-08 14:04 McDelfino 阅读(14) 评论(0) 推荐(0) 编辑

[968] Pandas, Data Frame, dtypes
摘要:In Pandas, you can use the dtypes attribute of a DataFrame to get the data type of each column. Here's how you can do it: import pandas as pd # Create 阅读全文

posted @ 2024-02-08 14:01 McDelfino 阅读(24) 评论(0) 推荐(0) 编辑

[967] Merge multiple polygons into a single unified polygon
摘要:In Shapely, you can use the unary_union method to merge a list of polygons into a single, unified polygon. Here's an example: from shapely.geometry im 阅读全文

posted @ 2024-02-08 13:58 McDelfino 阅读(17) 评论(0) 推荐(0) 编辑

[966] Merge two DataFrames horizontally
摘要:In Pandas, you can use the pd.concat function to merge two DataFrames horizontally (i.e., along columns). Here's an example: import pandas as pd # Sam 阅读全文

posted @ 2024-02-08 13:56 McDelfino 阅读(7) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
点击右上角即可分享
微信分享提示