Search is not available for this dataset
repo_id
stringlengths
12
110
file_path
stringlengths
24
164
content
stringlengths
3
89.3M
__index_level_0__
int64
0
0
public_repos/pandas/web
public_repos/pandas/web/pandas/versions.json
[ { "name": "dev", "version": "dev", "url": "https://pandas.pydata.org/docs/dev/" }, { "name": "2.1 (stable)", "version": "2.1", "url": "https://pandas.pydata.org/docs/" }, { "name": "2.0", "version": "2.0", "url": "https://pand...
0
public_repos/pandas/web
public_repos/pandas/web/pandas/index.html
{% extends "layout.html" %} {% block body %} <div class="container"> <div class="row"> <div class="col-md-9"> <section class="h-30 p-5 bg-light border rounded-3 text-center mb-4"> <h1>pandas</h1> <p> <strong>pandas</...
0
public_repos/pandas/web
public_repos/pandas/web/pandas/getting_started.md
# Getting started ## Installation instructions The next steps provides the easiest and recommended way to set up your environment to use pandas. Other installation options can be found in the [advanced installation page]({{ base_url}}docs/getting_started/install.html). 1. Download [Anaconda](https://www.anaconda.com...
0
public_repos/pandas/web
public_repos/pandas/web/pandas/donate.md
# Donate to pandas <div id="salsalabs-donate-container"> </div> <script type="text/javascript" src="https://default.salsalabs.org/api/widget/template/4ba4e328-1855-47c8-9a89-63e4757d2151/?tId=salsalabs-donate-container"> </script> _pandas_ is a Sponsored Project of [NumFOCUS](https://numfocus.org/), a 501(c)(...
0
public_repos/pandas/web
public_repos/pandas/web/pandas/robots.txt
User-agent: * Disallow: /preview/
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/about/team.md
# Team ## Contributors _pandas_ is made with love by more than [2,000 volunteer contributors](https://github.com/pandas-dev/pandas/graphs/contributors). If you want to support pandas development, you can find information in the [donations page]({{ base_url }}donate.html). ## Active maintainers <div class="card-gro...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/about/roadmap.md
# Roadmap This page provides an overview of the major themes in pandas' development. Each of these items requires a relatively large amount of effort to implement. These may be achieved more quickly with dedicated funding or interest from contributors. An item being on the roadmap does not mean that it will *necessar...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/about/sponsors.md
# Sponsors ## NumFOCUS ![](https://numfocus.org/wp-content/uploads/2018/01/optNumFocus_LRG.png) _pandas_ is a Sponsored Project of [NumFOCUS](https://numfocus.org/), a 501(c)(3) nonprofit charity in the United States. NumFOCUS provides _pandas_ with fiscal, legal, and administrative support to help ensure the health...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/about/index.md
# About pandas ## History of development In 2008, _pandas_ development began at [AQR Capital Management](https://www.aqr.com). By the end of 2009 it had been [open sourced](https://en.wikipedia.org/wiki/Open_source), and is actively supported today by a community of like-minded individuals around the world who contri...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/about/citing.md
# Citing and logo ## Citing pandas If you use _pandas_ for a scientific publication, we would appreciate citations to the published software and the following paper: - [pandas on Zenodo](https://zenodo.org/search?page=1&size=20&q=conceptrecid%3A%223509134%22&sort=-version&all_versions=True), Please find us on Zen...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/about/governance.md
# Project governance The official version of this document, along with a list of individuals and institutions in the roles defined in the governance section below, is contained in the [Project governance]({{ base_url }}about/governance.html) page of the pandas website. ## The Project The pandas Project (The Project)...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0006-ban-upcasting.md
# PDEP-6: Ban upcasting in setitem-like operations - Created: 23 December 2022 - Status: Accepted - Discussion: [#39584](https://github.com/pandas-dev/pandas/pull/50402) - Author: [Marco Gorelli](https://github.com/MarcoGorelli) ([original issue](https://github.com/pandas-dev/pandas/issues/39584) by [Joris Van den Bos...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0012-compact-and-reversible-JSON-interface.md
# PDEP-12: Compact and reversible JSON interface - Created: 16 June 2023 - Status: Rejected - Discussion: [#53252](https://github.com/pandas-dev/pandas/issues/53252) [#55038](https://github.com/pandas-dev/pandas/issues/55038) - Author: [Philippe THOMY](https://github.com/loco-philippe) - Revision: 3 ##### Sum...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0005-no-default-index-mode.md
# PDEP-5: NoRowIndex - Created: 14 November 2022 - Status: Withdrawn - Discussion: [#49693](https://github.com/pandas-dev/pandas/pull/49693) - Author: [Marco Gorelli](https://github.com/MarcoGorelli) - Revision: 2 ## Abstract The suggestion is to add a ``NoRowIndex`` class. Internally, it would act a bit like a ``Ra...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0009-io-extensions.md
# PDEP-9: Allow third-party projects to register pandas connectors with a standard API - Created: 5 March 2023 - Status: Rejected - Discussion: [#51799](https://github.com/pandas-dev/pandas/pull/51799) [#53005](https://github.com/pandas-dev/pandas/pull/53005) - Author: [Marc Garcia](https://github.com/da...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0001-purpose-and-guidelines.md
# PDEP-1: Purpose and guidelines - Created: 3 August 2022 - Status: Accepted - Discussion: [#47444](https://github.com/pandas-dev/pandas/pull/47444), [#51417](https://github.com/pandas-dev/pandas/pull/51417) - Author: [Marc Garcia](https://github.com/datapythonista), [Noa Tamir](https://github.com/noatamir) - Revi...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0004-consistent-to-datetime-parsing.md
# PDEP-4: Consistent datetime parsing - Created: 18 September 2022 - Status: Implemented - Discussion: [#48621](https://github.com/pandas-dev/pandas/pull/48621) - Author: [Marco Gorelli](https://github.com/MarcoGorelli) - Revision: 2 ## Abstract The suggestion is that: - ``to_datetime`` becomes strict and uses the ...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0007-copy-on-write.md
# PDEP-7: Consistent copy/view semantics in pandas with Copy-on-Write - Created: July 2021 - Status: Accepted - Discussion: [#36195](https://github.com/pandas-dev/pandas/issues/36195) - Author: [Joris Van den Bossche](https://github.com/jorisvandenbossche) - Revision: 1 ## Abstract Short summary of the proposal: 1....
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/pdeps/0010-required-pyarrow-dependency.md
# PDEP-10: PyArrow as a required dependency for default string inference implementation - Created: 17 April 2023 - Status: Accepted - Discussion: [#52711](https://github.com/pandas-dev/pandas/pull/52711) [#52509](https://github.com/pandas-dev/pandas/issues/52509) - Author: [Matthew Roeschke](https://gith...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/community/coc.md
# Code of conduct As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. We ...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/community/ecosystem.md
# Ecosystem Increasingly, packages are being built on top of pandas to address specific needs in data preparation, analysis and visualization. This is encouraging because it means pandas is not only helping users to handle their data tasks but also that it provides a better starting point for developers to build power...
0
public_repos/pandas/web/pandas/community
public_repos/pandas/web/pandas/community/blog/asv-pandas-grant.md
Title: Write up of the NumFOCUS grant to improve pandas benchmarks and diversity Date: 2022-04-01 # Write up of the NumFOCUS grant to improve pandas benchmarks and diversity *By Lucy Jiménez and Dorothy Kabarozi B.* We want to share our experience working on **Improvements to the** **ASV benchmarking framework and d...
0
public_repos/pandas/web/pandas/community
public_repos/pandas/web/pandas/community/blog/2019-user-survey.md
Title: 2019 pandas user survey Date: 2019-08-22 <style type="text/css"> table td { background: none; } table tr.even td { background: none; } table { text-shadow: none; } </style> # 2019 pandas user survey Pandas recently conducted a user survey to help guide future development. Thanks to everyone who pa...
0
public_repos/pandas/web/pandas/community
public_repos/pandas/web/pandas/community/blog/index.html
{% extends "layout.html" %} {% block body %} {% for post in blog.posts %} <div class="card"> <div class="card-body"> <h5 class="card-title"><a href="{% if not post.link.startswith("http") %}{{ base_url }}{% endif %}{{ post.link }}" target="_blank">{{ post.title }}</a></h5> ...
0
public_repos/pandas/web/pandas/community
public_repos/pandas/web/pandas/community/blog/pandas-1.0.md
Title: pandas 1.0 Date: 2020-01-29 # pandas 1.0 Today pandas celebrates its 1.0.0 release. In many ways this is just a normal release with a host of new features, performance improvements, and bug fixes, which are documented in our [release notes](https://pandas.pydata.org/pandas-docs/version/1.0.0/whatsnew/v1.0.0.ht...
0
public_repos/pandas/web/pandas/community
public_repos/pandas/web/pandas/community/blog/extension-arrays.md
Title: pandas extension arrays Date: 2019-01-04 # pandas extension arrays Extensibility was a major theme in pandas development over the last couple of releases. This post introduces the pandas extension array interface: the motivation behind it and how it might affect you as a pandas user. Finally, we look at how ex...
0
public_repos/pandas/web/pandas
public_repos/pandas/web/pandas/_templates/layout.html
<!DOCTYPE html> <html> <head> <script defer data-domain="pandas.pydata.org" src="https://views.scientific-python.org/js/script.js"></script> <title>pandas - Python Data Analysis Library</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1,...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/css/codehilite.css
pre { line-height: 125%; } td.linenos .normal { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5p...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/css/pandas.css
body { padding-top: 5em; color: #444; } h1 { font-size: 2.4rem; font-weight: 700; color: #130654; } h2 { font-size: 1.8rem; font-weight: 700; color: #130654; } h3 { font-size: 1.3rem; font-weight: 600; color: black; } h3 a { color: black; text-decoration: underline do...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/img/pandas_secondary.svg
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 664.97 470.93"><defs><style>.cls-1{fill:#130754;}.cls-2{fill:#ffca00;}.cls-3{fill:#e70488;}</style></defs><title>Artboard 57</title><path class="cls-1" d="M110.61,397.48c-10.28,0-20.73-4.25-27.29-12.58v45H62.76l0-111.08h18.6L82.09,331...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/img/pandas.svg
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 818.63 331.21"><defs><style>.cls-1{fill:#130754;}.cls-2{fill:#ffca00;}.cls-3{fill:#e70488;}</style></defs><title>Artboard 63</title><path class="cls-1" d="M290.85,199.21c-10.27,0-20.73-4.25-27.28-12.58v45H243l0-111.09h18.6l.71,12.22c6...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/img/pandas_mark.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sod...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/img/pandas_mark_white.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sod...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/img/pandas_secondary_white.svg
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 664.97 470.93"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#ffca00;}.cls-3{fill:#e70488;}</style></defs><title>Artboard 57 copy</title><path class="cls-1" d="M110.61,397.48c-10.28,0-20.73-4.25-27.29-12.58v45H62.76l0-111.08h18.6L82.09,3...
0
public_repos/pandas/web/pandas/static
public_repos/pandas/web/pandas/static/img/pandas_white.svg
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 818.63 331.21"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#ffca00;}.cls-3{fill:#e70488;}</style></defs><title>Artboard 63 copy 2</title><path class="cls-1" d="M290.85,199.21c-10.27,0-20.73-4.25-27.28-12.58v45H243l0-111.09h18.6l.71,12....
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/bodo.svg
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="930.84" height="267.43" viewBox="0 0 930.84 267.43"><defs><style>.cls-1{fill:#5e5e5e;}.cls-2{fill:#1db100;}</style></defs><title>bodo-grey-green</title><path class="cls-1" d="M85.73,93a83.24,83.24,0,0,1,33.14,6.64,85.67,85.67,0,0,1,0,158.11...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/intel.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Generator: Adobe Illustrator 23.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 450.00001 230.00001" xml:space="preserve" sodipodi:docname="intel.svg" inkscape:vers...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/voltron_data.svg
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1887.7 876.4" style="enable-background:new 0 ...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/two_sigma.svg
<svg width="230" height="42" viewBox="0 0 230 42" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Logo</title><defs><path id="a" d="M19.436 21.668V1.025H0v20.643h19.435z"></path></defs><g fill="none" fill-rule="evenodd"><path fill="#2D2D2D" d="M59.06 13.464h-7.137v-3.155h17.811v3.15...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/quansight_labs.svg
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.28 230.68"><defs><style>.cls-1{fill:#452391;}.cls-2{fill:#99c941;}.cls-3{fill:#973896;}</style></defs><path class="cls-1" d="M41.94,188.52c-2.37.51-7.48,2.71-12.51,5.54h3.46c5-2.71,10-5,14.08-6a15,15,0,0,0,1.62-.46Z"/><path class=...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/coiled.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg version="1.1" id="svg18" width="995.65601" height="491.82666" viewBox="0 0 995.65601 491.82666" sodipodi:docname="coiled.svg" inkscape:version="1.2.2 (b0a84865, 2022-12-01)" xml...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/numfocus.svg
<?xml version="1.0" encoding="UTF-8"?> <!-- Generator: Adobe Illustrator 19.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 432 135.7" style="enable-background:new 0 0 432...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/tidelift.svg
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Artwork" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 190.1 33" style="enable-background:new 0 0 19...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/czi.svg
<?xml version="1.0" encoding="UTF-8"?> <svg width="112px" height="62px" viewBox="0 0 112 62" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch --> <title>Group</title> <desc>Created with Ske...
0
public_repos/pandas/web/pandas/static/img
public_repos/pandas/web/pandas/static/img/partners/nvidia.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sod...
0
public_repos
public_repos/cloud-training-workshop/odsc_workshop_train.py
import torch import torch.nn.functional as F import torch.optim as optim import torchvision as tv from lightning.pytorch import LightningModule, Trainer from lightning.pytorch.callbacks import ModelCheckpoint, TQDMProgressBar from lightning.pytorch.utilities.model_helpers import get_torchvision_model from torchmetrics ...
0
public_repos
public_repos/cloud-training-workshop/imagenet_utils.py
import os import json import numpy as np import torchvision.transforms as T import os from PIL import Image def load_imagenet_class_names_to_index_map(): # download ImageNet class mapping os.system("curl https://raw.githubusercontent.com/raghakot/keras-vis/master/resources/imagenet_class_index.json -o ~/imagen...
0
public_repos
public_repos/cloud-training-workshop/README.md
# cloud-training-workshop ## Data preparation To get started with this workshop, you can refer to the [`odsc_workshop_data.ipynb`](https://github.com/Lightning-AI/cloud-training-workshop/blob/main/odsc_workshop_data.ipynb) notebook. This notebook is divided into two key sections: 1. **Optimizing ImageNet with Light...
0
public_repos
public_repos/cloud-training-workshop/odsc_workshop_data.ipynb
s3_path = <your path>from lightning import LightningDataModule from lightning.data import StreamingDataset, StreamingDataLoader, DatasetOptimizer import torchvision.transforms as T from PIL import Image from tqdm.auto import tqdm from imagenet_utils import get_class_index_from_filepath, to_rgb, shuffle, load_imagenet_v...
0
public_repos
public_repos/langchain-teacher/lc_main.py
import streamlit as st from langchain.chat_models import ChatOpenAI from langchain.schema import HumanMessage, AIMessage from langsmith import Client from langchain.callbacks.base import BaseCallbackHandler from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder, HumanMessagePromptTemplate from langchain....
0
public_repos
public_repos/langchain-teacher/main.py
from langchain.callbacks.base import BaseCallbackHandler from langchain.chat_models import ChatOpenAI from langchain.schema import HumanMessage, AIMessage import streamlit as st from langsmith import Client client = Client() st.set_page_config(page_title="LangChain: Getting Started Class", page_icon="🦜") st.title("...
0
public_repos
public_repos/langchain-teacher/guide.txt
Quickstart Installation To install LangChain run: Pip Conda pip install langchain For more details, see our Installation guide. Environment setup Using LangChain will usually require integrations with one or more model providers, data stores, APIs, etc. For this example, we'll use OpenAI's model APIs. First we'll n...
0
public_repos
public_repos/langchain-teacher/requirements.txt
openai langchain>=0.0.315 streamlit anthropic pydantic<2
0
public_repos
public_repos/langchain-teacher/get_prompt.py
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder, HumanMessagePromptTemplate from langchain.schema import SystemMessage from langchain.memory import ConversationBufferMemory def load_prompt(content): template = """You are an expert educator, and are responsible for walking the user \ through th...
0
public_repos
public_repos/langchain-teacher/.env-example
OPENAI_API_KEY= LANGCHAIN_ENDPOINT=https://api.smith.langchain.com LANGCHAIN_API_KEY= LANGCHAIN_TRACING_V2=true LANGCHAIN_PROJECT=
0
public_repos
public_repos/langchain-teacher/README.md
# LangChain-Teacher ![app screenshot](app_screenshot.png) ## Description LangChain-Teacher's goal is to facilitate interactive learning of LangChain, enabling users to begin with the Python-based LangChain through a chat-based learning interface. The app offers two teaching styles: Instructional, which provides ste...
0
public_repos
public_repos/langchain-teacher/lcel.py
import langchain from langchain.callbacks.base import BaseCallbackHandler from langchain.chat_models import ChatOpenAI, ChatAnthropic from langchain.schema import HumanMessage, AIMessage import streamlit as st from langsmith import Client client = Client() st.set_page_config(page_title="LangChain: Getting Started Cl...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/prompt_guide.txt
## Prompts and Prompt Templates in LangChain ### Introduction to Prompts A **prompt** for a language model serves as a set of instructions or input that guides the model's response. It helps the model understand context and generate relevant language-based output. This is crucial for tasks such as answering questions ...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/agents_guide.txt
## Agents in LangChain ### Introduction Welcome to the comprehensive lesson on Agents in LangChain. In this guide, we'll delve deep into the world of agents, their role in enhancing the capabilities of Large Language Models (LLMs), and how to effectively utilize them within the LangChain library. #### What are Agen...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/memory_guide.txt
**Lesson: Understanding Different Memory Types in Langchain** --- ### 1. Conversation Buffer Memory **Definition and Purpose:** Conversation Buffer Memory is a memory type that stores and manages a history of past messages exchanged between the user and the AI. It serves as a continuous record of the conversation's...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/models_guide.txt
## Understanding Different Types of Language Models in LangChain ### Introduction to Language Models Language models are essential tools in natural language processing that enable computers to understand and generate human language. LangChain provides interfaces and integrations for three main types of language models...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/getting_started_guide.txt
**Getting Started with LangChain: Building LLM-Powered Applications** In this comprehensive lesson, we'll dive into the world of LangChain, an open-source framework that empowers developers to create applications using Large Language Models (LLMs) like GPT-4. We'll cover various aspects of LangChain, from its core con...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/chains_guide.txt
You're right, my previous lesson on Chains in Langchain was too brief. Here is an expanded version with more details, examples, and code snippets: # Chains in Langchain ## Introduction Chains are a core concept in Langchain that enable combining multiple components like language models, retrievers, routers, etc. int...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lc_guides/retrieval_guide.txt
Here is a consolidated lesson on Retrieval Augmented Generation in Langchain with sections, questions, answers, and code examples: # Retrieval Augmented Generation in Langchain ## Introduction Retrieval augmented generation (RAG) refers to combining large language models with external knowledge sources to improve th...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lcel/lesson.txt
## First part: general understanding The LangChain Expression Language allows you to easily create chains of different components like prompts, models, retrievers, etc. This is a new type of way to contruct chains. There are two main benefits: a standard interface and easying piping. ### Standard Interface All chain...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lcel/guide.md
# Cookbook In this notebook we'll take a look at a few common types of sequences to create. ## PromptTemplate + LLM​ A PromptTemplate -> LLM is a core chain that is used in most other larger chains/systems. from langchain.prompts import ChatPromptTemplate from langchain.chat_models import ChatO...
0
public_repos/langchain-teacher
public_repos/langchain-teacher/lcel/interface.md
# Interface In an effort to make it as easy as possible to create custom chains, we've implemented a "Runnable" protocol that most components implement. This is a standard interface with a few different methods, which makes it easy to define custom chains as well as making it possible to invoke them in a standard way...
0
public_repos
public_repos/numpy-financial/LICENSE.txt
Copyright (c) 2005-2019, NumPy Developers. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
0
public_repos
public_repos/numpy-financial/pyproject.toml
[build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry] name = "numpy-financial" version = "1.1.0.dev0" description = "Simple financial functions" license = "BSD-3-Clause" authors = ["Travis E. Oliphant et al."] maintainers = ["Numpy Financial Developers <numpy-discussion@pyt...
0
public_repos
public_repos/numpy-financial/README.md
# NumPy Financial The `numpy-financial` package contains a collection of elementary financial functions. The [financial functions in NumPy](https://numpy.org/doc/1.17/reference/routines.financial.html) are deprecated and eventually will be removed from NumPy; see [NEP-32](https://numpy.org/neps/nep-0032-remove-financ...
0
public_repos/numpy-financial
public_repos/numpy-financial/doc/make.bat
@ECHO OFF pushd %~dp0 REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set SOURCEDIR=source set BUILDDIR=build if "%1" == "" goto help %SPHINXBUILD% >NUL 2>NUL if errorlevel 9009 ( echo. echo.The 'sphinx-build' command was not found. Make sure you have Sphinx ...
0
public_repos/numpy-financial
public_repos/numpy-financial/doc/Makefile
# Minimal makefile for Sphinx documentation # # You can set these variables from the command line, and also # from the environment for the first two. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = source BUILDDIR = build # Put it first so that "make" without argument is like "make help". help: @...
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/generate_rst_function_files.py
# This script was used to generate the rst function stubs # numpy_financial.fv.rst, numpy_financial.ipmt.rst, etc. # It requires that numpy_financial is already installed, # although it could just as easily use a hard-coded list # of function names. import numpy_financial as nf def generate_rst_function_files(): ...
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/pmt.rst
pmt === .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: pmt
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/pv.rst
pv == .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: pv
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/irr.rst
irr === .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: irr
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/fv.rst
fv == .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: fv
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/nper.rst
nper ==== .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: nper
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/index.rst
numpy-financial |version| ========================= The `numpy-financial` package is a collection of elementary financial functions. The `financial functions in NumPy <https://numpy.org/doc/1.17/reference/routines.financial.html>`_ are deprecated and eventually will be removed from NumPy; see `NEP-32 <https://numpy....
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/release-notes.rst
Release Notes ------------- 1.1.0 ~~~~~ * **1.1.0 is not released yet.** 1.0.0 ~~~~~ * The transition of the source code from NumPy to this package is complete. 0.2.0 ~~~~~ * Removed the use of `numpy.core.overrides.array_function_dispatch` to create wrappers of the financial functions. * Support NumPy versions bac...
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/ppmt.rst
ppmt ==== .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: ppmt
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/npv.rst
npv === .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: npv
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/mirr.rst
mirr ==== .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: mirr
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/rate.rst
rate ==== .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: rate
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/conf.py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import numpy_financial # -- Path setup -----------------------------------------------...
0
public_repos/numpy-financial/doc
public_repos/numpy-financial/doc/source/ipmt.rst
ipmt ==== .. currentmodule:: numpy_financial .. toctree:: .. autofunction:: ipmt
0
public_repos/numpy-financial/doc/source
public_repos/numpy-financial/doc/source/_static/numpy_financial_logov.svg
<?xml version="1.0" encoding="UTF-8" ?> <svg width="196.10000000000002" height="44" xmlns="http://www.w3.org/2000/svg"> <style> .mytext { font-size: 26px; font-family: monospace; } </style> <rect x="0" y="0" width="44" height="44" fill="#336699" stroke-width="0" /> <rect x="2.0" y="33.25" width="7" height="8.75" fill="...
0
public_repos/numpy-financial
public_repos/numpy-financial/doc_developer/getting_the_code.md
# Getting the code This document explains how to get the source code for NumPy-Financial using Git. ## Code Location NumPy-Financial is hosted on GitHub. The repository URL is https://github.com/numpy/numpy-financial. ## Creating a fork To create a fork click the green "fork" button at the top right of the page. T...
0
public_repos/numpy-financial
public_repos/numpy-financial/doc_developer/building_with_poetry.md
# Building with poetry ## Installing poetry numpy-financial uses [poetry](https://python-poetry.org/) to manage dependencies, build wheels and sdists, and publish to PyPI this page documents how to work with poetry. To install poetry follow their [official guide](https://python-poetry.org/docs/#installing-with-the-o...
0
public_repos/numpy-financial
public_repos/numpy-financial/numpy_financial/_financial.py
"""Some simple financial calculations patterned after spreadsheet computations. There is some complexity in each function so that the functions behave like ufuncs with broadcasting and being able to be called with scalars or arrays (or other sequences). Functions support the :class:`decimal.Decimal` type unless othe...
0
public_repos/numpy-financial
public_repos/numpy-financial/numpy_financial/__init__.py
__version__ = "1.1.0.dev0" from ._financial import *
0
public_repos/numpy-financial
public_repos/numpy-financial/tests/test_financial.py
from decimal import Decimal import math # Don't use 'import numpy as np', to avoid accidentally testing # the versions in numpy instead of numpy_financial. import numpy from numpy.testing import ( assert_, assert_almost_equal, assert_allclose, assert_equal, assert_raises ) import pytest import numpy_financial as ...
0
public_repos/numpy-financial
public_repos/numpy-financial/docweb/README.txt
This directory contains the files for the top-level online documentation. If these files are changed, the changes must be copied over to the top directory of the gh-pages branch.
0
public_repos/numpy-financial
public_repos/numpy-financial/docweb/index.html
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <title>numpy-financial</title> <style type="text/css"> code{white-space: pre-wrap;} span.smallca...
0
public_repos/numpy-financial/docweb
public_repos/numpy-financial/docweb/css/home.css
body { margin: auto; padding-right: 1em; padding-left: 1em; max-width: 48em; color: black; font-family: sans-serif; font-size: 100%; line-height: 125%; color: #333; } pre { border: 1px dotted gray; background-color: #E8E8E8; color: #101010; padding: 0.5em; } code { ...
0
public_repos/numpy-financial/docweb
public_repos/numpy-financial/docweb/images/numpy_financial_logoh.svg
<?xml version="1.0" encoding="UTF-8" ?> <svg width="435.3" height="44" xmlns="http://www.w3.org/2000/svg"> <style> .mytext { font-size: 43px; font-family: monospace; } </style> <rect x="0" y="0" width="44" height="44" fill="#336699" stroke-width="0" /> <rect x="2.0" y="33.25" width="7" height="8.75" fill="#FFF060" stro...
0
public_repos
public_repos/langsmith-wrappers/poetry.lock
# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. [[package]] name = "annotated-types" version = "0.5.0" description = "Reusable constraint types to use with typing.Annotated" category = "main" optional = false python-versions = ">=3.7" files = [ {file = "annotated_types-0....
0
public_repos
public_repos/langsmith-wrappers/pyproject.toml
[tool.poetry] name = "langsmith-wrappers" version = "0.0.1" description = "Experimental wrappers that also log to LangSmith." authors = ["LangChain <support@langchain.com>"] license = "MIT" readme = "README.md" repository = "https://github.com/langchain-ai/langsmith-wrappers" packages = [ {include = "langsmith"} ]...
0
public_repos
public_repos/langsmith-wrappers/README.md
# LangSmith API Wrappers Some functionality to wrap common apis (e.g., `openai`) with [LangSmith](https://smith.langchain.com/) instrumentation. Example: ```python from langsmith.wrappers.openai import openai result = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ { "r...
0
public_repos
public_repos/langsmith-wrappers/LICENSE
MIT License Copyright (c) 2023 LangChain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
0