在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:databricks/koalas开源软件地址:https://github.com/databricks/koalas开源编程语言:Python 99.5%开源软件介绍:NOTE: Koalas supports Apache Spark 3.1 and below as it is officially included to PySpark in Apache Spark 3.2. This repository is now in maintenance mode. For Apache Spark 3.2 and above, please use PySpark directly.
pandas API on Apache Spark
The Koalas project makes data scientists more productive when interacting with big data, by implementing the pandas DataFrame API on top of Apache Spark. pandas is the de facto standard (single-node) DataFrame implementation in Python, while Spark is the de facto standard for big data processing. With this package, you can:
We would love to have you try it and give us feedback, through our mailing lists or GitHub issues. Try the Koalas 10 minutes tutorial on a live Jupyter notebook here. The initial launch can take up to several minutes. Getting StartedKoalas can be installed in many ways such as Conda and pip. # Conda
conda install koalas -c conda-forge # pip
pip install koalas See Installation for more details. For Databricks Runtime, Koalas is pre-installed in Databricks Runtime 7.1 and above. Try Databricks Community Edition for free. You can also follow these steps to manually install a library on Databricks. Lastly, if your PyArrow version is 0.15+ and your PySpark version is lower than 3.0, it is best for you to set Now you can turn a pandas DataFrame into a Koalas DataFrame that is API-compliant with the former: import databricks.koalas as ks
import pandas as pd
pdf = pd.DataFrame({'x':range(3), 'y':['a','b','b'], 'z':['a','b','b']})
# Create a Koalas DataFrame from pandas DataFrame
df = ks.from_pandas(pdf)
# Rename the columns
df.columns = ['x', 'y', 'z1']
# Do some operations in place:
df['x2'] = df.x * df.x For more details, see Getting Started and Dependencies in the official documentation. Contributing GuideSee Contributing Guide and Design Principles in the official documentation. FAQSee FAQ in the official documentation. Best PracticesSee Best Practices in the official documentation. Koalas Talks and BlogsSee Koalas Talks and Blogs in the official documentation. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论