Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function argument syntax #23

Open
Lingaselvan opened this issue Sep 20, 2017 · 1 comment
Open

Function argument syntax #23

Lingaselvan opened this issue Sep 20, 2017 · 1 comment

Comments

@Lingaselvan
Copy link

The arguments to many functions in the code is passed like : "def update_relevancies(self, new_relevancies: pd.DataFrame):"

When I tried to run this code, I get "SyntaxError: invalid syntax" error message.

I changed the argument passing to "def update_relevancies(self, new_relevancies = pd.DataFrame):" replacing : with = and then there was no error message.

Is this due to difference in the Python version or due to another issue?

@danthe96
Copy link
Member

Hi Lingaselvan,

Sorry for the very late response, as I didn't get a notification for this.
The : pd.DataFrame is a type hint first introduced in Python 3.5, you will have to use at least that version to run HiCS. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants