Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.
/ PySyntax.jl Public archive

(*deprecated*) PySyntax.jl allows Python-like syntax in Julia. Py.jl provides a light wrapper on top of PyCall.jl in the form of a macro.

License

Notifications You must be signed in to change notification settings

kdheepak/PySyntax.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySyntax Travis-CI Build Status AppVeyor

This package is deprecated:


PySyntax.jl enables using Python-like syntax in Julia. It provides a light wrapper on top of PyCall.jl, in the form of a macro.

Installation

Within Julia, just use the package manager to run Pkg.clone("https://github.com/kdheepak/PySyntax.jl") to install the files. Julia 0.5 or later is recommended.

Usage

In a session, type the following to export the @py macro.

using PySyntax

The @py macro allows Python-like syntax

@pyimport pandas as pd
df = pd.DataFrame(
    Dict(
        "name"=>["John", "Jane", "Zack", "Zoey"],
        "salary"=>[100000, 100000, 100000, 100000]
        )
)
@py df = df.set_index("name")
@py df["John":"Jane"]

See notebooks for examples. See JuliaPy/PyCall.jl#86 for the discussion on this subject.

Improvements, suggestions or contributions welcome!

About

(*deprecated*) PySyntax.jl allows Python-like syntax in Julia. Py.jl provides a light wrapper on top of PyCall.jl in the form of a macro.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •